dmbox
3rd March 10, 02:18 PM
I am building a site that will have a full browser flash intro page...and it has been working fine, with CSS and XHTML validated.
Today I added a small flash component to automatically play background music and the SWF is no longer centered.
Any idea why the addition of this small component would change the layout?
Here is the correctly positioned SWF (no component)
=======================================
http://twocleverchicks.com/index_new.html
Here is the incorrectly positioned one (with component)
=======================================
http://twocleverchicks.com/index_new2.html
Here is the intro page CSS
<style type="text/css">
* {
margin:0;
padding:0;
}
html, body {
height:100%;
overflow:hidden;
}
body {
background-color:#333; /* page color */
text-align:center; /* horizontal centering for IE5 Win quirks */
}
#distance {
width:1px;
height:50%;
background-color:#333;
margin-bottom:-50%; /* half of container's height */
float:left;
}
#container {
margin:0 auto;
position:relative; /* puts container in front of distance */
text-align:left;
height:100%; /* Height of centered container */
width:100%; /* Width of centered container */
clear:left;
background-color:#333; /* Color of centered container */
border:1px solid #333;
border-top-color:#333;
border-left-color:#333;
}
</style>
Thanks for your help.
dmb
Today I added a small flash component to automatically play background music and the SWF is no longer centered.
Any idea why the addition of this small component would change the layout?
Here is the correctly positioned SWF (no component)
=======================================
http://twocleverchicks.com/index_new.html
Here is the incorrectly positioned one (with component)
=======================================
http://twocleverchicks.com/index_new2.html
Here is the intro page CSS
<style type="text/css">
* {
margin:0;
padding:0;
}
html, body {
height:100%;
overflow:hidden;
}
body {
background-color:#333; /* page color */
text-align:center; /* horizontal centering for IE5 Win quirks */
}
#distance {
width:1px;
height:50%;
background-color:#333;
margin-bottom:-50%; /* half of container's height */
float:left;
}
#container {
margin:0 auto;
position:relative; /* puts container in front of distance */
text-align:left;
height:100%; /* Height of centered container */
width:100%; /* Width of centered container */
clear:left;
background-color:#333; /* Color of centered container */
border:1px solid #333;
border-top-color:#333;
border-left-color:#333;
}
</style>
Thanks for your help.
dmb