centering an swf with overflow hidden
Posted: 21 July 2008 03:30 PM   [ Ignore ]
Newbie
Rank
Total Posts:  9
Joined  2008-05-23

Hey everyone, I have an swf that is about 1700 pixels wide in a div. I want to center the swf and use overflow:hidden; to hide the extra width. Essentially, I want to create the same effect as if the swf was a background image using background-position:top center;. I don’t want to have to shrink my images down using width:100%. Any suggestions? Here is my css:

bodyhtml {
background
-color#000000;
margin0;
padding0;
}

#header {
positionabsolute;
left0;
background-imageurl(images/headerexample.png);
width100%;
height49px;
min-width1000px;
}

#main {
height481px;
margin-top10px;
overflowhidden;
min-width1000px;
}

#menu {
positionrelative;
top4px;
background-imageurl(images/logonavexample.png);
width796px;
height39px;
margin-left50px;
}


#footer {
positionabsolute;
top520px;
background-imageurl(images/footerexample.png);
width100%;
height200px;
min-width1000px;
Profile
 
 
Posted: 25 July 2008 05:05 PM   [ Ignore ]   [ # 1 ]
Member
Avatar
RankRankRank
Total Posts:  52
Joined  2007-11-08

If you gave a link to the page you’re talking about, it would help us know where the problem really is. Nevertheless, you can try integrating your flash using swfobject, it would make your flash containing div more customizable.

Profile