can't center my page

cybergolflesson

New Member
Hi, I'm a newbie to this forum so howdy all!! I can't center my website. My resolution is set to 1280x800 and can't figure out how to center my site...I'd like for it to center in all browsers but would happy figuring out how to center with this resolution. I use dreamweaver cs3. This is the page I'm trying to center, it's not quite complete as it is going to be my template for my other pages. Thanks for any tips.

http://www.cybergolflessons.com/index1.php
 

LandisCreations

New Member
In the styles section at the top of the page, remove from the body
Code:
margin-right: 1000px;
which is currently pushing all of your content to the far left of the page.

I also highly recommend picking up a Firefox extension called Firebug, which lets you inspect all the elements of your page and adjust css rules on the fly to see what changes occur. It's fairly invaluable for a developer.

Best,
Nathan
 

smoovo

New Member
Your body tag should be "margin:0; padding:0;" erase all you other margins, then you can just add "margin:auto;" to your div. This will center your div.

- Enjoy. :)
 
Top