File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 'http://www.w3.org/TR/html4/strict.dtd'>
33
44<html lang="en">
5- <!-- $Id: box.src,v 1.57 2004-03-08 18:35:19 bbos Exp $ -->
5+ <!-- $Id: box.src,v 1.58 2004-03-09 01:19:30 bbos Exp $ -->
66<HEAD>
77<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
88<TITLE>Box model</TITLE>
@@ -210,14 +210,15 @@ margins</a> for behavior.
210210implementation-specific limits.
211211
212212<!-- #include src=properties/margin-top.srb -->
213+
214+ <p class="note">These properties have no effect on non-replaced inline
215+ elements.</p>
216+
213217<!-- #include src=properties/margin-right.srb -->
214218
215219<P>These properties set the top, right, bottom, and left margin of a
216220box.
217221
218- <p class="note">These properties have no effect on non-replaced inline
219- elements.</p>
220-
221222<div class="example"><P>
222223<PRE>
223224h1 { margin-top: 2em }
Original file line number Diff line number Diff line change 11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22<html lang="en">
3- <!-- $Id: visudet.src,v 2.96 2004-03-08 18:41:35 bbos Exp $ -->
3+ <!-- $Id: visudet.src,v 2.97 2004-03-09 01:19:30 bbos Exp $ -->
44<head>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<title>Visual formatting model details</title>
@@ -992,6 +992,9 @@ their used value is 0. If <span
992992class="propinst-height">'height'</span> is 'auto', the <a
993993href="#root-height">height depends on the element's descendants.</a>
994994
995+ <p>For 'inline-block' elements, the margin box is used when calculating
996+ the height of the line box.
997+
995998
996999<h3><a name="root-height">'Auto' heights for block formatting context
9971000roots</a></h3>
@@ -1019,8 +1022,6 @@ those edges. Only floats that are children of the element itself or of
10191022descendants in the normal flow are taken into account, e.g., floats
10201023inside absolutely positioned descendants or other floats are not.
10211024</p>
1022- <p>For 'inline-block' elements, the margin box is used when calculating
1023- the height of the line box.
10241025
10251026
10261027
You can’t perform that action at this time.
0 commit comments