M
Mike Silva
Here's a little test page that should, according to my understanding
and based on what I have read in various places, center the container
box horizontally. It does so on IE, but on Firefox and Safari the box
is on the left. Can somebody explain the problem? Thanks.
<!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=utf-8">
<title>Test</title>
<style type="text/css">
<!--
body {
margin: 0;
padding: 0;
text-align: center;
}
#container {
width: 600px;
margin 0 auto;
text-align: left;
border: thin solid #000;
}
-->
</style>
</head>
<body>
<div id="container">
Content for id container Goes Here
</div>
</body>
</html>
and based on what I have read in various places, center the container
box horizontally. It does so on IE, but on Firefox and Safari the box
is on the left. Can somebody explain the problem? Thanks.
<!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=utf-8">
<title>Test</title>
<style type="text/css">
<!--
body {
margin: 0;
padding: 0;
text-align: center;
}
#container {
width: 600px;
margin 0 auto;
text-align: left;
border: thin solid #000;
}
-->
</style>
</head>
<body>
<div id="container">
Content for id container Goes Here
</div>
</body>
</html>