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

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to