Re: using css for centering

by "Darrell King" <darrell(at)webctr.com>

 Date:  Mon, 3 Jun 2002 19:51:05 -0400
 To:  <hwg-techniques(at)hwg.org>
 References:  services king 2
  todo: View Thread, Original
Actual, I am talking IE6, Mozilla .9.9, NN6.2 and Opera 6 (I can't remember
for sure one that last one, but I believe it passed.)  The margin: auto is
properly used to center it's owning block level element.

I believe most of those browsers are available on non-windows platforms in
present or earlier versions, and all are used to access the Web.  Not sure
what the comment means...?

----- Original Message -----
From: "Kid Stevens"

See you are talking Windows I am talking the Web.

At 6:18 PM -0400 6/3/02, Darrell King wrote:
>Actually, you center a block-level element in compliant browsers with
>margin: auto.  This does not work in IE5.5, but that is a browser bug and
>doesn't change the validity of the technique.
>
>As a workaround in IE5.5, you can place the block-level element to be
>centered inside a div that has text-align: center assigned to it.  Then, to
>endure that compliant browsers also center the target element, assign
>margin: auto to that element as well.
>
>D

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA