Cool - I was looking for that (i.e., it works _and_ makes sense to use).

-rc

> -----Original Message-----
> From: Kevin Graeme [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 02, 2003 9:02 AM
> To: CF-Community
> Subject: Re: simple css question
> 
> 
> Okay, I was half right before, just mixed up the margin and 
> padding positions. The width is still only of the inside 
> content with the margin and padding being added to that. 
> Here's the w3c specs if anyone cares:
> 
> ---
> The width of an element is the width of the content, i.e., 
> the distance between left inner edge and right inner edge.
> 
> The horizontal position and size of a non-floating, 
> block-level element is determined by seven properties: 
> 'margin-left', 'border-left', 'padding-left', 'width', 
> 'padding-right', 'border-right' and 'margin-right'. The sum 
> of these seven is always equal to the 'width' of the parent element.
> ---
> 
> So Raymond, the solution you came up with of nesting the 
> elements to get the effect you want is a fine example of both 
> these rules used together.
> 
> -Kevin
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:5
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to