Skip to content

Commit ab9ce75

Browse files
committed
[css2] padding and margin top/bottom % values w.r.t. containing block width, added doc type decl to example
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401444
1 parent 628b36d commit ab9ce75

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

css2/box.src

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: box.src,v 1.10 1998-03-23 21:25:47 bbos Exp $ -->
3+
<!-- $Id: box.src,v 1.11 1998-04-06 23:36:40 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Box model</TITLE>
@@ -98,6 +98,7 @@ This example illustrates how margins, padding, and borders
9898
interact. The example HTML document:
9999

100100
<PRE class="html-example">
101+
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"&gt;
101102
&lt;HTML&gt;
102103
&lt;HEAD&gt;
103104
&lt;STYLE type="text/css"&gt;
@@ -200,7 +201,9 @@ value type, which may take one of the following values:
200201
<dd>Specifies a fixed width.
201202
<dt><span class="value-inst-percentage"><strong>&lt;percentage&gt;</strong></span>
202203
<dd>Specifies a percentage width. The percentage is calculated
203-
with respect to the generated box's <a href="visuren.html#containing-block">containing block</a>.
204+
with respect to the <em>width</em> of
205+
the generated box's
206+
<a href="visuren.html#containing-block">containing block</a>.
204207
<dt><strong>auto</strong>
205208
<dd>See the section on <a href="visudet.html#box-width">box width calculations</a>
206209
for behavior.
@@ -327,7 +330,8 @@ name="value-def-padding-width"><strong>&lt;padding-width&gt;</strong>
327330
<dt><span class="value-inst-percentage"><strong>&lt;percentage&gt;</strong></span>
328331
<dd>Specifies a percentage width.
329332
The percentage is calculated
330-
with respect to the generated box's <a href="visuren.html#containing-block">containing block</a>.
333+
with respect to the <em>width</em> of the
334+
generated box's <a href="visuren.html#containing-block">containing block</a>.
331335
</dl>
332336

333337
<P>Unlike margin properties, values for padding values cannot be

0 commit comments

Comments
 (0)