![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Updating my bag of tricks again. What's the level of support for margin: auto. Is this widely supported now amongst almost all browsers? |
|
It's a common request to have a "centered" page. I don't remember which major browser didn't support margin: auto, but there was a common hack with some "text-aligns". Is it time to drop the hack? |
#3
| |||
| |||
|
|
Updating my bag of tricks again. What's the level of support for margin: auto. Is this widely supported now amongst almost all browsers? It's a common request to have a "centered" page. I don't remember which major browser didn't support margin: auto, but there was a common hack with some "text-aligns". Is it time to drop the hack? |
#4
| |||
| |||
|
|
On Fri, 22 Feb 2008 21:50:42 +0100, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: It's a common request to have a "centered" page. I don't remember which major browser didn't support margin: auto, but there was a common hack with some "text-aligns". Is it time to drop the hack? Nope, MSIE6 still needs it. |
#5
| |||
| |||
|
|
In article <13rudd4o354c1a2 (AT) corp (DOT) supernews.com>, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: What's the level of support for margin: auto. Is this widely supported now amongst almost all browsers? IE 6 is the one to worry about. It will not centre a block with margin: auto and a width. |
#6
| |||
| |||
|
|
Rik Wasmus wrote: On Fri, 22 Feb 2008 21:50:42 +0100, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: It's a common request to have a "centered" page. I don't remember which major browser didn't support margin: auto, but there was a common hack with some "text-aligns". Is it time to drop the hack? Nope, MSIE6 still needs it. Nope, IE6 does *not* need it, at least not in standards mode. |
|
Margin:auto works perfectly fine. IE5.x doesn't grok it, but who cares? You shouldn't be coding for quirks mode any more anyway. |
#7
| |||
| |||
|
|
dorayme wrote: In article <13rudd4o354c1a2 (AT) corp (DOT) supernews.com>, Jeff <jeff (AT) spam_me_not (DOT) com> wrote: What's the level of support for margin: auto. Is this widely supported now amongst almost all browsers? IE 6 is the one to worry about. It will not centre a block with margin: auto and a width under some circumstances. bollocks I use margin:auto all the time. It works perfectly fine in IE6. |
![]() |
| Thread Tools | |
| Display Modes | |
| |