On Jul 18, 2006, at 8:17 AM, Robert O'Rourke wrote: >> So, the overflow-property is a useful solution for containing >> floats in >> some cases, but not in others. >> >> regards >> Georg >> > > Good to know, > > Does a floated element within a container that has overflow : hidden ; > applied respect the padding of the container? In particular the bottom > padding, and also are there any cross-browser differences in this > instance? (apart from the usual =P )
Yes, it should... While you are around on my demos on block formatting context. The use of overflow can be quite problematic. Have a look at this in Opera 9 and below: <http://dev.l-c-n.com/IEW/float-formatting-context-Right.php> (overflow adjacent to a right floated block). And all those demos are quite basic things. There are more differences between browsers. Look at how the horizontal margins are handled, especially between a container with overflow and an adjacent float (hint: Gecko and iCab are right, all others are wrong). The overflow:hidden method can also cause content to be clipped, with no way for the user to access the data. Imagine a larger data table within such a container. It may display fine when viewed on the designers monitor. But the user need to zoom in to be able to read. The table expands, but part of it is clipped... As Georg says, quoted above, overflow can be a method to contain floats. There are no black and white solutions. Advising people, especially beginners, of the contrary is utterly unfair. Philippe --- Philippe Wittenbergh <http://emps.l-c-n.com> ______________________________________________________________________ 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/