Change your tag to another and in the CSS specify it a width (I'm guessing 950px) and then use margin: 0 auto o auto;
As long as a block element has a width specified and margin-left and margin-right set to auto the element will be centered.
hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 169
in the CSS specify it a width (I'm guessing 950px)
be careful when doing this: you'll be assuming all clients show your page the way you see it, but you need to take into consideration that other users might have another screen resolution.
try as much as possible to have a dynamic width and height.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
yep, if you have, for instance: 50%, it will use 50% of the available browser screen.
you can check that yourself, if you resize your browser, you should see the difference.
if you have a fixed value, say 550px;, and you resize your screen, or if the page is looked at on a screen with a different resolution than yours ... well, the difference may be huge.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433