If I understand correctly, you're suggesting that that "overflow:hidden"
doesn't hide overflow?
My own use of "overflow:hidden" has only been in conjunction with a
stated height. In this case "overflow:hidden" hides anything that goes
beyond the stated height of the element the rule has been attached to.
Joseph R. B. Taylor
/Web Designer / Developer/
--------------------------------------
Sites by Joe, LLC
/"Clean, Simple and Elegant Web Design"/
Phone: (609) 335-3076
Web: http://sitesbyjoe.com
Email: j...@sitesbyjoe.com
On 2/10/10 1:50 PM, Jody Tate wrote:
(I'm a list lurker. Also, apologies if this has been covered before.)
In CSS, setting a div to "overflow: hidden" solves a problem it shouldn't--at
least from the name of the property and value, it seems like it shouldn't.
Often I'll have text, e.g. an h1, overflowing its containing/parent div, but setting the
containing/parent div to "overflow: hidden" causes the parent div to set its
height in a way that the formerly overflowing text no longer overflows.
I've seen this happen for years. Another developer showed me this fix years ago. But over
the years, I've never read an explanation why "overflow: hidden" fixes a
problem its name implies it wouldn't.
Have others seen this? Any explanations?
-jody
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************