Mike Copeland wrote:
[replaced attribute] Jonathan wrote:
>> table { margin-left: auto; margin-right: auto; }
>>
> I tried that, but it doesn't change any of the rendering behavior:
> I.E. works, but other browsers don't.
> I also removed the "text-align: center", but that made I.E. fail,
> too.
> It seems I didn't understand your message: could you show what code
> is to be changed and where to implement the changes? TIA
Then you are doing something wrong.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="en-us">
<title>Centering blocks</title>
<style type="text/css">
table { margin: 1em auto; border: 1px solid #000; }
td { border: 1px solid #aaa; }
</style>
</head>
<body>
<table>
<tr><td>I am in the center of the browser window</td></tr>
<tr><td>Even works in IE6.x +</td></tr>
</table>
</body>
</html>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com