|
|
You are not logged in.
January 25th, 2006, 14:59
|
#1
|
Join Date: Nov 2004
Location: Castle Rock, CO
Posts: 2,187
|
Centering in Firefox
I am using
Code:
body, html
{
background-color: #fff;
margin: 0px auto;
font-size: 1em;
font-family: Verdana, Arial, Helvetica, sans-serif;
color:#000;
text-align: center;
}
and I thought that would center it in Firefox but I missed something? What?
Thanks!
|
|
|
January 25th, 2006, 15:06
|
#2
|
Vision - Action = Bovine Excrement
Join Date: Oct 2004
Posts: 10,252
|
Set margin:0 and padding:0.
Then, apply the margin:0 auto to a container inside the body of the site, maybe have a rule for #wrapper, and put a <div id="wrapper"></div> around the entire page.
For wrapper, you'll need to specify a width, or else it will default to 100%, wihch will nullify the margins necessary to center your design.
|
|
|
January 25th, 2006, 15:12
|
#3
|
Join Date: Nov 2004
Location: Castle Rock, CO
Posts: 2,187
|
That was what I was missing - the extra layer. Thanks!!
|
|
|
January 25th, 2006, 15:27
|
#4
|
Vision - Action = Bovine Excrement
Join Date: Oct 2004
Posts: 10,252
|
Sure thing Corey 
|
|
|
January 26th, 2006, 15:31
|
#5
|
Coolest dog in the world..
Join Date: Oct 2004
Location: Banbury, UK
Posts: 2,228
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|