Holly wrote:
From: Derek de Jong <[EMAIL PROTECTED]>
nternet Explorer is including the margin *inside the box width*, while
W3C-spec browsers (rightly) are not.
No 'current' version of IE/Win that I know of includes margins *inside the box
width* as you have stated. IE5.x/Win browsers, and IE6 in quirks mode use their
broken box model and include borders and padding within a stated box width, but
the margins still extend correctly.
The escape character is handy What you can do is add:
width: 51%;
margin: 2%;
w\idth: 49%;
And IE will not parse the "w\idth" attribute, while FF, Saf, Opera, etc
will,
First, it's a width property, not attribute. The width attribute is used in HTML pages to specifiy widths for images, for example.
IE5.x/Win browsers do not understand the escape character, but IE6 does,
whether in standard or quirks mode. The suggested filter is a useful one, when
you need to give IE5.x/Win browsers a different value than other browsers for
the property you are using, but it will not filter for IE6.
For the original poster, Georg's solution is a good one.
Cheers,
~holly
Yes, I knew I was wrong before I spoke, and should have just kept quiet,
but my fingers lept ahead of my brain. "It is better to remain silent,"
as it were. I was already corrected, and I do apologize for the
confusion, as as well as the inappropriate terminology; things I know
better than to confuse. It was one of those no-sleep nights, and I
should have thought better about posting in the first place.
Let the archives show, "there are no margins inside the IE/Win
boxmodel," and all hacks are not, in fact, created equal. ;)
Thanks,
Derek
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/