W3C home > Mailing lists > Public > www-style@w3.org > October 2007

Overflow:hidden doesnt work with percentages

From: Serj I <serj.rds@gmail.com>
Date: Thu, 18 Oct 2007 18:56:33 +0530
Message-ID: <31e6aa4e0710180626h69131834sfb14757d1b97ec83@mail.gmail.com>
To: www-style@w3.org
Hi guys

Several months ago i discovered an unpleasant issue: when you set overflow
to hidden (or other values different from visible) on an element such as
div or td which height is given in percentages overflow doesn't work. It
is very inconvenient. For example i tried to make such a simple list: items
are represented with tables (float:left,clear:right,width:1px) contained
within a div (overflow:hidden;width:200px;height:100%). Each time overflow
occures the
div breaks all the layout 'caz its height goes out of 100% of its
parent. All modern browsers behaive as i described.
Even if content of an element is wider than its parent and the parent's
width is set to some length (not percentages) overflow doesnt
work. I found a workaround but I use javascript . I hope this problem will
disapper when CSS3 is adopted.

Serj I
Received on Thursday, 18 October 2007 14:58:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:31 UTC