W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Re: where is overflow:none ?

From: Ernest Cline <ernestcline@mindspring.com>
Date: Mon, 17 May 2004 23:20:42 -0400
Message-ID: <410-22004521832042203@mindspring.com>
To: "Andrew Fedoniouk" <news@terrainformatica.com>, www-style@w3.org


> [Original Message]
> From: Andrew Fedoniouk <news@terrainformatica.com>
>
> PS: If somebody can explain me the reason why they cannot
> be negative I'll appreciate a lot.
> Example when they could help is here:
> http://terrainformatica.com/w3/p2/scrollbar.htm
> ( .vscrollbar { padding:-1px; } )

Well first off, you allow negative padding, you are going to
get content overflowing the containing box even when the
overflow property isn't set to cause that.  In general that will
be a bad thing.  Judging by your example, it looks like you
are trying to cause the box size to include the border and
padding.  If that's your intent, then 'box-sizing' [1] should do
the trick:  (.vscrollbar {box-sizing:border-box} )

[1] <http://www.w3.org/TR/2002/WD-css3-box-20021024/#the-box-width>
Received on Monday, 17 May 2004 23:20:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:30 GMT