On 2/22/13 8:10 AM, Chip at Caliber Communications wrote:
Perfect. Thanks very much. Any ideas about the {overflow: hidden;} business? Specifically, since I have a background color applied to the .menu-primary, why would the overflow of that element change the color? What exactly is overflowing? And, why is it overflowing (since I don't think any dimensions are explicitly set)?
Setting the "overflow" property to a value other than "auto" (the default) creates something called a "new block-formatting context." It has the effect of preventing floats from sticking out of the bottom. In your case, applying "overflow" stretches the float's container, which is why you get to see the background color.
<http://www.css-101.org/block-formatting-contexts/index.php> -- 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/
