Tony Crockford wrote:
> Chris Williams wrote:
>> Thanks for the reply.
>>
>> Funny, the "convoluted use of negative margins" is all over the place, and I
>> got it from a couple of different references, both books and example sites.
>> And it works in every browser on the planet... Except IE7??
> 
> I've never seen it used in that way before, but then I'm in the habit of 
> avoiding padding on container elements as much as possible.
> 
> I didn't mean to imply you'd done something wrong, just that it *felt* 
> odd to me.
> 
> have you any references for this use of -ve margins, they'll probably 
> need to be rewritten!

Ah.

I googled and discovered that IE has a fixable bug in relation to 
content that overlaps a negative margin, which seems to be the case here...

apply position: relative; to the h5 and all will be okay.

hat tip:
http://www.communitymx.com/content/article.cfm?page=4&cid=B0029

<quote>IE will cut off the portion of an object that overflows its 
parent container due to negative margins. Luckily, there's a quick fix: 
apply position: relative to the float, and the cut off portion 
appears!</quote>
CSS Negative Margins - Part One
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to