- From: Andrew Fedoniouk <news@terrainformatica.com>
- Date: Mon, 17 May 2004 20:47:36 -0700
- To: <ernestcline@mindspring.com>, <www-style@w3.org>
Thanks a lot, Ernest, for you response! In the example I want to draw child borders exactly on top of a container's border. Let's say with different colour. It seems that I can achieve the same by applying margin:-1px to each child. So it is not a critical issue. Just aesthetic reasons: three times for each child or only once - for a container. I just thought that there is some logical/physical limitation for padding:-1px which I cannot see. Thanks again. Andrew Fedoniouk. http://terrainformatica.com ----- Original Message ----- From: "Ernest Cline" <ernestcline@mindspring.com> To: "Andrew Fedoniouk" <news@terrainformatica.com>; <www-style@w3.org> Sent: Monday, May 17, 2004 8:20 PM Subject: 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:47:34 UTC