PDA

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

B&T
1-22-05, 09:39 AM
Use a table with a specified width.
Use frames.
Use a div with a specified width.
And I am sure there are other ways,

whl626
1-22-05, 09:48 AM
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

Rick_E
1-22-05, 11:09 AM
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