Re: where is overflow:none ?

> [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 UTC