Forum Moderators: open

Message Too Old, No Replies

Composer & IE6

Table wont align center in IE but will in Mozilla

         

hinoiri

6:23 am on Sep 12, 2003 (gmt 0)

10+ Year Member



IE6 will not center this table?
in composer i have the table set to center, mozilla handles it alright, why doesnt IE?

<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>EDIT</title>
<meta name="description" content="index">
</head>
<body style="background-color: rgb(0, 0, 0); color: rgb(192, 192, 192);"
link="#ffffff" alink="#ffffff" vlink="#c0c0c0">
<table cellpadding="2" cellspacing="2" border="0"
style="text-align: left; width: 50%; margin-left: auto; margin-right: auto;">
<tbody>
<tr>
<td
style="vertical-align: top; background-color: rgb(0, 0, 0); text-align: center;"><span
style="color: rgb(192, 192, 192);"><br>
<br>
<br>
<br>
<font size="-1"><br>
<br>
<br>
<br>
<br>
<br>
<a href="http://EDIT.html"
style="font-family: adobe-utopia-iso10646-1;">ENTER</a><br
style="font-family: adobe-utopia-iso10646-1;">
<br style="font-family: adobe-utopia-iso10646-1;">
</font></span>
<div style="text-align: center;"><font size="-1"><span
style="color: rgb(192, 192, 192);">Built using Mozilla Composer,
tested on Mozilla 1.4 &amp; IE6.0.</span><span
style="color: rgb(192, 192, 192);"><br>
Please send any HTML errors/problems to:<br>
cda [at] EDIT [dot] EDIT</span></font><br>
</div>
</td>
</tr>
</tbody>
</table>
<div style="text-align: center;">
</div>
</body>
</html>

korkus2000

11:59 am on Sep 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Because the div that aligning center contains nothing you need to move this tag:

<div style="text-align: center;">

under this tag:

<body style="background-color: rgb(0, 0, 0); color: rgb(192, 192, 192);"
link="#ffffff" alink="#ffffff" vlink="#c0c0c0">

That should place the table inside the div that is your centering element.