[thelist] Vertically Centering Tables
David Dorward
david at us-lot.org
Tue Feb 18 14:13:12 CST 2003
On Mon, Feb 17, 2003 at 07:57:11 -0500, Nebula wrote:
> > #content {
> > margin-left: auto;
> > margin-right: auto;
>
> Perhaps I didn't do it right, but that doesn't seem to work in Mozilla
> (yes, I put a <span class="content"> and </span> around my content).
<span> is an inline element, that assumes a block level element.
# is an id selector, not a class selector.
Either use <div id="content"> or replace the #content selector with text-align:
center; in the body {}
> This doesn't seem to work in IE, either.
No. It doesn't.
--
David Dorward http://david.us-lot.org/
"You cannot rewrite history, not one line."
- The Doctor (Dr. Who: The Aztecs)
More information about the thelist
mailing list