On Fri, 17 May 2002 23:37:43 +0100, B A Ray wrote:

> "The box width is given by the sum of the left and right margins,
> border, and padding, and the content width. The height is given by
> the sum of the top and bottom margins, border, and padding, and the
> content height."
> http://www.w3.org/TR/REC-CSS2/box.html#box-border-area

So, if the content height is 100px, the margins are 0px, the padding
is 0px and the border is 10px wide, the box height is
100+0+0+10px=110px, right?

> My understanding of this is that the border should be rendered
> inside the "height".

If you thereby mean that the content should be changed to have height
90px instead of 100px, I think you're wrong.

> <style> div { border-width:10px; border-style:solid; } </style>

> <div style="position:absolute; left:100px; top:100px; width:100px;
> height:100px; border-color:blue; "> box1 </div>


  Best regards,

-- 
 "Alla sammantr�ffande med verkligheten �r helt                Adam Sj�gren
  slumpm�ssiga, alla melodier �r p�hittade."              [EMAIL PROTECTED]

Reply via email to