Re: Default top and bottom margin disappear in IE7: why
- From: GTalbot <newsgroup@xxxxxxxxxxx>
- Date: Fri, 16 Nov 2007 18:18:52 -0800 (PST)
On 13 nov, 12:15, Ben C <spams...@xxxxxxxxx> wrote:
I think getting a value of "auto" is another bug in itself--
getComputedStyle is meant to give you the computed style, which for a
margin, should be either a number of pixels or a percentage.
Internet Explorer 6 and Internet Explorer 7 do not support
document.defaultView.getComputedStyle(...)
Internet Explorer 6 and Internet Explorer 7 only support
document.getElementById(id-attribute-value).currentStyle.[CSS-property-
name]
If you've
set margin: auto, then you should get however many pixels the margin
turned out to be (in this case auto should compute to 0, so you should
get "0" or "0px").
Yes. "auto" by itself means nothing concrete, nothing tangible. When a
value is computed, it must equate to something concrete. Internet
Explorer 7 is still far from all this.
Regards, Gérard
Yes.
.
- References:
- Prev by Date: Re: how to contain frames using css?
- Next by Date: Re: 2 problems with IE6 rendering
- Previous by thread: Re: Default top and bottom margin disappear in IE7: why
- Next by thread: Re: Default top and bottom margin disappear in IE7: why
- Index(es):
Relevant Pages
|
Loading