Well hell. You made me go and double-check myself, and it looks like you're
right. Here's the w3c page:
http://www.w3.org/TR/CSS1#block-level-elements

Grrr. And I thought I was sure on this because I had just run into it
working on something last night. Sorry Raymond. Now I have to go back and
look at what I was doing at 2am.

-Kevin

----- Original Message ----- 
From: "Ben Doom" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Tuesday, September 02, 2003 9:41 AM
Subject: RE: simple css question


> My understanding is that padding is supposed to be inside, and margin is
> supposed to be outside, but not all browsers render it that way.  I've
> noticed differences, for example, between Mozilla and Safari which are
both
> different from IE6/Win.
>
> IE5/Mac is just fubared.
>
> Anyway, the only way I know of to fix this is with JS.
>
> HTH.
>
>
> --  Ben Doom
>     Programmer & General Lackey
>     Moonbow Software, Inc
>
> : -----Original Message-----
> : From: Raymond Camden [mailto:[EMAIL PROTECTED]
> : Sent: Tuesday, September 02, 2003 10:15 AM
> : To: CF-Community
> : Subject: simple css question
> :
> :
> : I've got this style def:
> :
> : .header {
> : color: #dd0000;
> : font-family: Verdana, Arial, Helvetica, sans-serif;
> : font-size: 24px;
> : font-weight: bold;
> : border: thin solid;
> : padding: 5px;
> : width: 100%;
> : }
> :
> : which works fine, except that the box stretches past the right edge of
> : the browser. It's like width is calculated first, then padding is added
> : but instead of creating a padding _inside_ the box, the box has 10
> : pixels added to it's width. I assume I've made a simple mistake, but I
> : don't see it.
> :
> : -rc
> :
> :
> :
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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