PDA

View Full Version : [SOLVED] SWFObject move my Div?


danpe
8th September 10, 11:47 AM
Hey,

I have my website css exported from Adobe Fireworks CS5

here is the CSS id:

view plaincopy to clipboardprint?
#etPlayerDiv {
margin-left: 160px;
margin-top: 1px;
display: inline;
float: left;
margin-bottom: 0;
border: 1px solid #ccc;
width: 640px;
padding-top: 0px;
height: 385px;
text-align:center;
}

the div is in the perfect place.

Now when im using SWFObject to put an swf inside the DIV, all the website goes wrong.

The div go to the left and everything goes one line below..

I Tried this:

view plaincopy to clipboardprint?
#etPlayerDiv object, #etPlayerDiv embed
{
position:relative;
width:100%;
height:100%;
}

But nothing...

Any ideas?

rkrause
8th September 10, 12:25 PM
show us the entire code please.

You need to contain the swf element in its own container.

Ryan.

danpe
8th September 10, 01:03 PM
show us the entire code please.

You need to contain the swf element in its own container.

Ryan.

Thx it fixed my issue, i placed the swf element in a new container :)