W3C home > Mailing lists > Public > www-style@w3.org > February 2008

Re: Overflow and Margins

From: Brad Kemper <brkemper@comcast.net>
Date: Sat, 2 Feb 2008 15:27:53 -0800
Message-Id: <680B001D-4A6D-4CDD-A1BB-05C87ACBE3FD@comcast.net>
Cc: Bruno Fassino <fassino@gmail.com>
To: CSS Style <www-style@w3.org>

By the way, the thing that got me thinking about this was "block- 
align:center". If we had a mechanism that would center align blocks,  
and the centered blocks were larger than their container, and the  
container was set to "overflow:scroll" or "overflow:auto", what would  
be the desired outcome?

For me (as a designer), I would want to see the content still  
centered on the screen, with the scroll button in the middle so I  
could scroll left or right to see the overflowed sides. One thing I  
would not expect at all would be to see margin working on one side of  
the scroll plane but not the other.

I was also thinking that if we had "block-align:center", then we  
would also have "block-align:right", which would essentially align  
blocks in the same manner as when the text direction is RTL, but  
without actually changing the text direction. In which case it would  
be especially strange to see the right margins missing when the  
blocks are right aligned, but not see the left margin missing when  
the block is left aligned.


On Feb 2, 2008, at 3:11 PM, Brad Kemper wrote:

>
> On Feb 2, 2008, at 2:48 PM, Bruno Fassino wrote:
>
>>
>> Bruno Fassino wrote:
>>> Brad Kemper wrote:
>>>> Isn't it a bit odd that of one block is wider than its parent, and
>>>> the parent is set to "overflow:scroll", that the margins of
>>>> the child are shown on the top, bottom, and left, but not on the
>>>> right?
>>
>> In addition to the fact that in your case the used margin-right is  
>> not the
>> specified value,
>
> Yes, that is the problem I would like to see addressed.
>
>> and more important, is the fact that probably the
>> "scrolling" mechanism of overflow has the intent to allow to see the
>> content, not its margins.
>
> And yet I can see the effect of all of the other 3 margins.
>
>> Indeed the same thing happens to a vertical bottom
>> margin.
>
> I don't know what you mean. When the height is not specified, I  
> still see the bottom margin. the margins increase the height of the  
> container. If you mean that the same phenomenon occurs when  
> overflowing in the vertical instead of the horizontal, then sure,  
> that is no surprise.
>
>> Margins that do not "affect" the rendering are not "visible" in any
>> way.
>
> The other 3 margins affect the size of the pane that is being  
> scrolled. I would like to see the 4th margin do the same.
>
>>
>> --
>> Bruno Fassino http://www.brunildo.org/test
>>
>>
>
Received on Saturday, 2 February 2008 23:28:18 GMT

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