wienerdog
11-10-2006, 01:42 PM
I am trying my hand at styling this flash movie page with CSS and am trying to add a background image. However, the background image is starting below the flash and HTML content in IE. Why would this be happening?
Here's the CSS from my external style sheet related to this page:
#flashcontent {
width: 700px;
margin: 10px 0px 0px 0px;
text-align: center;
}
#movie_contact_info {
background-color: #EFEFEF;
width: 650px;
margin: 10px 0px 15px 0px;
}
And here is the page I'm trying to get to work:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Flash movie</title>
<script type="text/javascript" src="swfobject.js"></script>
</head>
<link rel="styleSheet" href="css/style.css" type="text/css" />
<style type="text/css">
html {background-image: url(images/soup_bg.jpg);
}
</style>
<body>
<div id="flashcontent" align="center">
<table width="695" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="695" height="195">
<param name="movie" value="flash/intro.swf" />
<param name="quality" value="high" />
<embed src="flash/intro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="695" height="195"></embed>
</object></td>
</tr>
</table>
</div>
<div align="center">
<script type="text/javascript">
var so = new SWFObject("flash/intro.swf", "CEM_Movie", "695", "195", "8", "#BDBAA5");
so.addParam("align", "");
so.write("flashcontent");
</script>
</div>
<div id="movie_contact_info">
<p class="text-1">For more information, contact:<br />
Person • Director of Business Development • Ph: # • email: email@company.com</p>
</div>
</body>
</html>
Here's the CSS from my external style sheet related to this page:
#flashcontent {
width: 700px;
margin: 10px 0px 0px 0px;
text-align: center;
}
#movie_contact_info {
background-color: #EFEFEF;
width: 650px;
margin: 10px 0px 15px 0px;
}
And here is the page I'm trying to get to work:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Flash movie</title>
<script type="text/javascript" src="swfobject.js"></script>
</head>
<link rel="styleSheet" href="css/style.css" type="text/css" />
<style type="text/css">
html {background-image: url(images/soup_bg.jpg);
}
</style>
<body>
<div id="flashcontent" align="center">
<table width="695" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="695" height="195">
<param name="movie" value="flash/intro.swf" />
<param name="quality" value="high" />
<embed src="flash/intro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="695" height="195"></embed>
</object></td>
</tr>
</table>
</div>
<div align="center">
<script type="text/javascript">
var so = new SWFObject("flash/intro.swf", "CEM_Movie", "695", "195", "8", "#BDBAA5");
so.addParam("align", "");
so.write("flashcontent");
</script>
</div>
<div id="movie_contact_info">
<p class="text-1">For more information, contact:<br />
Person • Director of Business Development • Ph: # • email: email@company.com</p>
</div>
</body>
</html>