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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Centering Dreamweaver Template - Help RQ

Status
Not open for further replies.

bambipage

Technical User
Mar 8, 2009
1
AU
I created a website in Dreamweaver using a template. Can someone kindly tell me how do I make it so that the pages show up centered on anyone's screen? Right now it's showing on the far left with space on the right side of the screen.
The web site is here
Any help would be appreciated.

Thank you.
~bambi~
 
body {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 0.8em;
text-align: center;
background-color: #000000;
margin: 0px;
}

I am assuming you have your main div floating or aligned left. Adding the body tag text-align: center will center the main div.As you can see I have a few other rules I keep in the body as well.

You may also need to include a rule min-width: 600px;
Here is a good explaination:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top