How do I center my websites
I use Dreamweaver MX. I'm not as proficient at HTML as I should be. Could anyone tell me the code to center my webpages and where to place the code? I thought all I needed was <center> at the top of the body and </center> at the end, but this doesn't seem to work.
I'd avoid using <center> tags if possible as they are deprecated in HTML 4.0 and beyond.
<div style="text-align:center;"> </div>
I'd use styling, seting left and right margin widths to auto. But if IE5 users browse your site, see here
assign a fixed width to the parent block element and give it an "auto" margin for both left and right
<div style="width: 800px; margin: 0 auto;">
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)