On Wed, 2 Apr 2008 11:40:53 -0700, Michael Stevens wrote:
> -----Original Message-----
> From: David Laakso [mailto:[EMAIL PROTECTED]
>
>> Michael Stevens wrote:
>>
>> www.karmarbfi.com
>> www.karmarbfi.com/karmar.css
>>
>> My understanding is the #content div contains the #products and #prodR,
>> #prodL divs
>> so when floating they must stay within #content. Judging by FF rendering it
>> correctly
>> I'll assume my understanding is close to correct.
>>
>> What about IE? It's floating the whole thing down and below the menu. There
>> must be
>> another hack that I'm not aware of to make it stay within it's parent div.
>>
>> Mike
>>
> Try feeding a width to give "layout" (horizontal dimension) to IE/6:
>
> * html #index #content #products {
> border: 1px solid blue;
> width: 92%;
> }
>
> So why does <= 94% work but >= 95% doesn't work? Is it trying to calculate
> the width
> and then it runs into the 10px of margin and padding applied?
>
Yes. Percent widths are tricky on elements with margins and padding.
Another way of giving #products "hasLayout" (for IE 5.5 - 7) is this:
#products {
display: inline-block; /* "hasLayout" for IE */
}
#products {
display: block; /* revert to desired rendering */
}
Cordially,
David
--
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/