blob: d02a7e22dd470438e21959385ff32b386834b965 [file] [log] [blame]
darin1d1801e2003-07-31 00:21:00 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html><head><title>CSS1 Test Suite: 5.5.25 float</title>
2
3<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4<meta http-equiv="Content-Style-Type" content="text/css">
5
6<link rel="stylesheet" type="text/css" media="screen" href="../resources/base.css">
7<style type="text/css">
8P.test {background: white; font-size: 20px;
9 margin-left: 30px; margin-right: 10px; padding: 0; border: 0;}
10IMG {padding: 0; border: 0; margin: 0;}
11P.test IMG {float: left;}
12#img2 {margin-top: 30px; margin-left: 30px;}
13#img3 {margin-top: -30px; margin-left: -30px;}
14#img4 {margin-right: 30px; margin-bottom: 30px;}
15#img5 {margin-right: -30px; margin-bottom: -30px;}
16</style></head>
17
18<body><p>The style declarations which apply to the text below are:</p>
19<pre>P.test {background: white; font-size: 20px;
20 margin-left: 30px; margin-right: 10px; padding: 0; border: 0;}
21IMG {padding: 0; border: 0; margin: 0;}
22P.test IMG {float: left;}
23#img2 {margin-top: 30px; margin-left: 30px;}
24#img3 {margin-top: -30px; margin-left: -30px;}
25#img4 {margin-right: 30px; margin-bottom: 30px;}
26#img5 {margin-right: -30px; margin-bottom: -30px;}
27
28</pre>
29<hr>
30<p class="test"> This paragraph should have a white background which
31extends to the edges of the element's box. There is no padding set on
32this paragraph whatsoever. If the background of the entire box is not
33white, this may cause problems with the following tests; at any rate,
34it must be taken into account. </p>
35<p class="test">
36<img src="../resources/crosshair.gif" alt="[Image]"> The image in
37the upper left corner of this paragraph should be floated left, and
38nothing more. The edges of the white background should line up with
39the top and left edges of the image. This paragraph should have a
40white background, first of all, which extends to the edges of the
41element's box. There is no padding set on this paragraph whatsoever. </p>
42<p class="test">
43<img src="../resources/crosshair.gif" id="img2" alt="[Image]"> The
44image in the upper left corner of this paragraph should be pushed down
45and to the right 30 pixels each from the upper left corner of the
46paragraph's box, and displace the paragraph text accordingly. This
47paragraph should have a white background, first of all, which extends
48to the edges of the element's box. There is no padding set on this
49paragraph whatsoever. </p>
50<p class="test">
51<img src="../resources/crosshair.gif" id="img3" alt="[Image]"> The
52image in the upper left corner of this paragraph should be pushed up
53and to the left 30 pixels each from the upper left corner of the
54paragraph's box, thus causing the edges of the white background to
55align with the thick gray lines in the image. This paragraph should
56have a white background, first of all, which extends to the edges of
57the element's box. There is no padding set on this paragraph
58whatsoever. </p>
59<p class="test">
60<img src="../resources/crosshair.gif" id="img4" alt="[Image]"> The
61image in the upper left corner of this paragraph should be floated
62left, and the edges of the white background should line up with the top
63and left edges of the image. However, there should be 30 pixels of
64space between the right and bottom edges of the image and the paragraph
65text around it. This paragraph should have a white background, first
66of all, which extends to the edges of the element's box. There is no
67padding set on this paragraph whatsoever. </p>
68<p class="test">
69<img src="../resources/crosshair.gif" id="img5" alt="[Image]"> The
70image in the upper left corner of this paragraph should be floated
71left, and the edges of the white background should line up with the top
72and left edges of the image. However, the text should overlap the
73image's right and bottom sides, lining up with the thick gray lines in
74the image. This paragraph should have a white background, first of
75all, which extends to the edges of the element's box. There is no
76padding set on this paragraph whatsoever. </p>
77
78
79<table border="1" cellspacing="0" cellpadding="3" class="tabletest">
80<tbody><tr>
81<td colspan="2" bgcolor="silver"><strong>TABLE Testing Section</strong></td>
82</tr>
83<tr>
84<td bgcolor="silver"> </td>
85<td><p class="test"> This paragraph should have a white background which
86extends to the edges of the element's box. There is no padding set on
87this paragraph whatsoever. If the background of the entire box is not
88white, this may cause problems with the following tests; at any rate,
89it must be taken into account. </p>
90<p class="test">
91<img src="../resources/crosshair.gif" alt="[Image]"> The image in
92the upper left corner of this paragraph should be floated left, and
93nothing more. The edges of the white background should line up with
94the top and left edges of the image. This paragraph should have a
95white background, first of all, which extends to the edges of the
96element's box. There is no padding set on this paragraph whatsoever. </p>
97<p class="test">
98<img src="../resources/crosshair.gif" id="img2" alt="[Image]"> The
99image in the upper left corner of this paragraph should be pushed down
100and to the right 30 pixels each from the upper left corner of the
101paragraph's box, and displace the paragraph text accordingly. This
102paragraph should have a white background, first of all, which extends
103to the edges of the element's box. There is no padding set on this
104paragraph whatsoever. </p>
105<p class="test">
106<img src="../resources/crosshair.gif" id="img3" alt="[Image]"> The
107image in the upper left corner of this paragraph should be pushed up
108and to the left 30 pixels each from the upper left corner of the
109paragraph's box, thus causing the edges of the white background to
110align with the thick gray lines in the image. This paragraph should
111have a white background, first of all, which extends to the edges of
112the element's box. There is no padding set on this paragraph
113whatsoever. </p>
114<p class="test">
115<img src="../resources/crosshair.gif" id="img4" alt="[Image]"> The
116image in the upper left corner of this paragraph should be floated
117left, and the edges of the white background should line up with the top
118and left edges of the image. However, there should be 30 pixels of
119space between the right and bottom edges of the image and the paragraph
120text around it. This paragraph should have a white background, first
121of all, which extends to the edges of the element's box. There is no
122padding set on this paragraph whatsoever. </p>
123<p class="test">
124<img src="../resources/crosshair.gif" id="img5" alt="[Image]"> The
125image in the upper left corner of this paragraph should be floated
126left, and the edges of the white background should line up with the top
127and left edges of the image. However, the text should overlap the
128image's right and bottom sides, lining up with the thick gray lines in
129the image. This paragraph should have a white background, first of
130all, which extends to the edges of the element's box. There is no
131padding set on this paragraph whatsoever. </p>
132</td></tr></tbody></table></body></html>