|
The easiest way to do this is to use the <center> tag. Just put <center>WHATEVER YOU WANT CENTERED</center> and you'll be good to go.
Edit: Sorry, didn't see the second part to your question. As far as auto-resizing to fit the end user's browser, the best way I've found (and really its just a matter of opinion) is to use tables. Some people really hate using tables for anything, but I don't know why. Anyway, the way I always do it is to create a centered table that has a width of 95%. Then, inside that, put another table that is 100% and in that table put all your content. This will ensure that your webpage won't be anymore than 95% of their browser window. Why 95% instead of 100? Well, a matter of personal opinion I s'pose. I think it looks better to have a little bit of edge around your website than to have it butting up right against the edge of the browser. Play around with a couple different settings....as I said before, its all really just a matter of opinion in what you think looks best.
Last edited by danlefeb; 03-16-2006 at 07:23 PM..
|