View Full Version : Centering website
5thReview
1-22-05, 04:51 AM
Does anyone know how to center the content in a website when i create it. When viewed in 1024 X 768 my website is moved all the way to the left, and sites like yahoo and ebay are centered in the middle with a little gap on each side. How can i center mine in the middle as well and not have it all the way to the left. Thanks
Use a table with a specified width.
Use frames.
Use a div with a specified width.
And I am sure there are other ways,
On top of your content, type
<div align="center">
At the bottom of your content, type
</div>
When you set the width of your table, set it in percentage ( % ) instead of pixels if you want it to look fine either in 800 x 600 or 1024 x 768
Also, if your page is in a table to fit 800x600 with no horizontal scroll bar, make the width of the table 778 to allow for the vertical scroll bar, which takes up 22 pixels.
5thReview
1-22-05, 08:35 PM
k thanks alot guys
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.