Forum Moderators: open
<html>
<head>
<title>Compare Center and Tables FF IE</title>
<style type="text/css">
<!--
body {
margin: 0;
padding: 0;
font-family: Verdana, Arial, sans-serif;
font-size: 0.8em;
text-align: center;
color: #000000;
background-color: ; /* #FDD800 for design only */
}
#LeftMenu table {background-color:#FEFEF0;border-color: #0000CC;border-width:1px;border-collapse:collapse;margin-top:3em;}
#LeftMenu td {
border-style: none none dotted none; border-bottom-color: Gray; border-collapse: separate; border-bottom: 1px dashed;
}
#LeftMenu td {font-family:verdana;}
#LeftMenu A:link {text-decoration:none;color:#5463C7;font-size:10px;margin-left: 4px;}
#LeftMenu A:visited {text-decoration:none;color:#5463C7;font-size:10px;}
#LeftMenu A:active {text-decoration:none;color:#5463C7;font-size:10px;}
#LeftMenu A:hover {text-decoration:underline;color:#5463C7;font-size:10px;}
-->
</style>
</head>
<body>
From U726
<table width="500" border="0" cellspacing="0" cellpadding="0" style="background-color: #DCDCDC;">
<tr>
<td valign="top" width="150">
<div id="leftmenu">
<table>
<tr>
<td ><a href='#'>UJ Viewbook</a>
</td>
</tr>
<tr>
<td><a href='#'>Welcome to the UJ</a>
</td>
</tr>
<tr>
<td><a href='#'>Admissions</a>
</td>
</tr>
</div>
</td>
</tr>
</table>
</body>
</html>
table { margin: 0 auto; } Of course you’d probably want to id or class that table so that all tables weren’t affected. Oh, and you also only need the text-align:center if you want backwards compatibility with IE5.
<body>
From U726
<table id="container" width="500" border="0" cellspacing="0" cellpadding="0" style="background-color: #DCDCDC;">
<tr>
<td valign="top" width="150">
<div id="leftmenu">
<table>
<tr>
<td ><a href='#'>UJ Viewbook</a>
</td>
</tr>
<tr>
<td><a href='#'>Welcome to the UJ</a>
</td>
</tr>
<tr>
<td><a href='#'>Admissions</a>
</td>
</tr>
</div>
</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">