centering a webpage with css [solved]
Posted: Thu Dec 14, 2006 10:30 pm
I've done this before, I just can't seem to remember how. I have a main div that is 760px wide.. i just want it in the center.
I've tried this:
And this:
Both work in IE, but not in FF or Opera.
I've tried this:
Code: Select all
body, html {
margin: 20px auto 10px auto;
padding: 0 auto 0 auto;
text-align: center;
}Code: Select all
body, html {
margin: 20px 0 10px 0;
padding: 0 0 0 0;
text-align: center;
}