Har en flashfilm som jag vill ska centreras i webbläsaren, både horisontalt och vertikalt. Men filmen hamnar bara högst upp.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>...</title>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<table align="center" cellspacing="0" cellpadding="0" border="0" style="width: 900px; height: 100%;">
<tr>
<td align="center" valign="middle" style="width: 900px; height: 100%;">
<object type="application/x-shockwave-flash" data="site.swf" width="900" height="620">
<param name="movie" value="site.swf" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
</object>
</td>
</tr>
</table>
</body>
</html>
CSS:
html, body {
background: #54331D;
font-family: Verdana, Sans Seriff, Tahoma, Arial, Helvetica;
font-size: 10px;
font-weight: normal;
color: #FEFEFE;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 100px;
margin-right: 0px;
width: 100%
height: 100%;
}
a {
font-family: Verdana, Sans Seriff, Tahoma, Arial, Helvetica;
font-size: 10px;
font-weight: normal;
color: #0098EF;
text-decoration: underline;
}
Det som är konstigt är att det fungerar om jag tar bort DTD-taggen! :o
Vad kan vara fel?