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 12:42:23 -0800
Message-Id: <A11D37B9-838B-4EE3-A13D-3F81E3619948@comcast.net>
To: CSS Style <www-style@w3.org>

On Feb 2, 2008, at 11:44 AM, 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?  
> Is that the way it is supposed to be? It seems to me that the right  
> margin should also be shown within the scroll box. (Tested in  
> FireFox 3 and Safari 3.)
>
> Example:
>
> <html>
> 	<head>
> 		<style type="text/css">
> 			DIV { border:1px solid; overflow-x:scroll; }
> 			DIV DIV { height:5em; margin:.5em; width:200%;}
> 		</style>
> 	</head>
> 	<body>
> 		<div>
> 				<div></div>
> 		</div>
> 	</body>
> </html>


Opera 9.25 does the same thing, BTW. Perhaps there is something in  
the spec that says it should do this? Does it also say why? It seems  
counter-intuitive to me.
Received on Saturday, 2 February 2008 20:42:39 GMT

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