Forum Moderators: not2easy
<style type="text/css">
<!--
body, html {
height:100%; /*fill the viewport*/
}
#flash_box{
position:relative; /*allows for top property to move the element*/
top:50%; /*moves it 50% of #container's height down the page*/
margin-top:-400px; /*pulls it back up by half it's height*/
margin-left: auto;margin-right: auto; /*H-centering in complaint browsers*/
}
-->
</style>
Try this:
<html>
<head><style>
<!--
body,html {
height:100%;
}
/*use this class on images only*/
.valigner{
height:100%;
width:0px;
visibility:hidden;
vertical-align:middle;
}
-->
</style>
</head>
<body>
<div id="flash_box">
<img class="valigner">
<!-- put your flass stuff here -->
</div>
</body>
</html>
It's a little trick I've developed. Should work - though I haven't tried it on flash stuff.
<style type="text/css">
<!--
body, html {
height:100%; /*fill the viewport*/
}
#flash_box{
position:relative; /*allows for top property to move the element*/
top:50%; /*moves it 50% of #container's height down the page*/
margin-top:-400px; /*pulls it back up by half it's height*/
margin-left: auto;margin-right: auto; /*H-centering in complaint browsers*/
}
/*use this class on images only*/
.valigner{
height:100%;
width:0px;
visibility:hidden;
vertical-align:middle;
}
-->
</style>
</head>
<body>
<body>
<div id="flash_box">
<img class="valigner">
<table width="1007" border="0" align="center" valign="middle">
<tr>
<td width="1001">
<!-- flash stuff -->
</td>
</tr>
</table>
</div>
Here's an example of what I want it to do:
<zap>
[edited by: DrDoc at 4:23 am (utc) on Sep. 3, 2008]
[edit reason] No URIs, please. See forum guidelines. [/edit]