On Mar 12, 2008, at 11:22 PM, Niels Matthijs wrote: > Adding a border on the parent this is an ugly trick because when > changing the background color you need to change the border color > too. Generally I avoid such methods in css. border-color:transparent ? (of course, iExploder v6 doesn't play with that…).
>> Or: establishing a new block-formatting context > > That's the overflow trick I've been using, I just wonder if there's > a safe fix that will work seamlessly in all situation. I can add > overflow:hidden but then I can't position anything outside my parent > container anymore ... etc etc. There is no 'one-fix-it-all' solution. Overflow is one option; float, display:table-cell or inline-block are 2 more options. And yeah, IE makes things difficult, depending on the hasLayout status of the parent, the margins on the first-child/last-child come and go. :not(fun) things. Philippe --- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ 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/
