
August 16th, 2004
01:06 AM
I'm a mean sonuvabitch
Status: Offline!
Re: CSS/div FAQ
Originally posted by Radley
How do I horizontally center a div?
The code is relatively simple.
/* body can be replaced with the
parent of the object you want to center */
body {
text-align: center; /* IE5.x/Win fix */
}
#center {
text-align: left; /* reset text aligning */
margin: 0 auto; /* the correct way */
/* you can modify the top and bottom margins, just leave left and right to auto */
}
Doesn't work for Mozilla FireFox...: http://zovaag.nl/mirrors/raf/
___________________
Really
do
smiles
make
your
posts
less
retarded?

August 16th, 2004
01:28 AM
Lord British
Status: Offline!
I don't see "margin: 0 auto;" anywhere in your code. Try again, and maybe read this time.
___________________
PurePhotoshop Forums

August 16th, 2004
02:33 AM
I'm a mean sonuvabitch
Status: Offline!

August 16th, 2004
03:18 AM
Neverside Newbie
Status: Offline!
Originally posted by Krigu
Sorry, my bad, didn't think it'd be of much importance to this matter.
How'd you come to that conclusion, when, right after margin: 0 auto; is the following comment?
___________________
Tables for layout is an abuse. -- Internet Explorer is unsafe.