That's how CSS is supposed to work. The box is the actual content + margin.
The padding is supposed to extend beyond that. Of course, that's not how
some versions of IE handle it.
-Kevin
----- Original Message -----
From: "Raymond Camden" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Tuesday, September 02, 2003 9:14 AM
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
Get the mailserver that powers this list at
http://www.coolfusion.com