Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use CSS to Center Page

Status
Not open for further replies.

Dashsa

Programmer
Aug 7, 2006
110
US
Hello I have made a site at: But now want the site to be centered I have tried this at: The issue I am having is in the style sheet located at : I have changed some of the divs to be " reletive" instead of " absolute" and then had to change their top attribute to be like "-1500px" Is this Normal?
The site now also has a long scroll bar and a wide scroll bar.
How do I fix this?
Thanks in advance!
D
 
here's how i always center a box on the page:
Code:
<div id="wrapper" style="width: 500px; margin: 0 auto; height: 200px;">

...content coeth here...

</div>
Width must be set and the "margin: 0 auto;" makes it centered.
 
Thanks for the help,
I am still not getting rid of the scroll bars on the side and bottom of the screen.
The Divs position are still very weired - top:-1500px;
I think this the reason that I am getting the scroll bars.
Any help to fix the scroll bars would be great!
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top