Forum Moderators: phranque
We want create a site and all pages are in the center of any browsers. Something like [cnet.com....] I read their source and found they are using:
<html>
<head>
...
</head>
<body>
<div align="center">
...........
...........
</div>
</body>
</html>
Is <div align="center"> the way to make entire site in center?
Thanks.
<div style="width: 600px; margin: 0 auto;"> ...
..So, you can use either of those methods, but by doing so you're just guaranteeing yourself that you'll have to go back and edit all your pages when the W3C standards are more strongly enforced. Centering your content using the margins is intended to save you some time down the road.