Hallo,
habe mit Dreamweaver soeben versucht, ein Bild auf einer Seite mit Hilfe
einer Tabelle vertikal und horizontal zu zentrieren:
<!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>Hardhouse-Corporation :: The Music Will Be With You</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<table width="" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="248px" align="center" valign="middle"><img src="images/hhclogo.gif" width="566" height="248" /></td>
</tr>
</table>
</body>
</html>
Aber weder Firefox noch IE 6 peilt das. Komischerweise zeigt Dreamweaver alles zentriert an. Woran liegt das?
Gruß,
Julian