OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Reference</title> | |
3 <link rel="author" title="Adobe" href="http://html.adobe.com/"> | |
4 <link rel="author" title="Bem Jones-Bey" href="mailto:bjonesbe@adobe.com"> | |
5 <link rel="help" href="http://dev.w3.org/csswg/css-shapes-1/#relation-to-box-mod
el-and-float-behavior"> | |
6 <meta name="flags" content="ahem"> | |
7 <head> | |
8 <style> | |
9 .container { | |
10 font: 50px/1 Ahem, sans-serif; | |
11 line-height: 50px; | |
12 width: 100px; | |
13 height: 100px; | |
14 border: 1px solid black; | |
15 color: black; | |
16 background-color: blue; | |
17 } | |
18 | |
19 #float-left { | |
20 float: left; | |
21 margin-right: 25px; | |
22 width: 25px; | |
23 height: 100px; | |
24 background-color: green; | |
25 } | |
26 | |
27 #float-right { | |
28 float: right; | |
29 margin-left: 25px; | |
30 width: 25px; | |
31 height: 100px; | |
32 background-color: green; | |
33 } | |
34 </style> | |
35 | |
36 <body> | |
37 <p>This should display a green stripe, a blue stripe, and a black rectangle,
in that order.</a> | |
38 <div class="container"> | |
39 <div id="float-left"></div> | |
40 X X | |
41 </div> | |
42 <p>This should display a black rectangle, a blue stripe, and a green stripe,
in that order.</a> | |
43 <div class="container" style="text-align: right"> | |
44 <div id="float-right"></div> | |
45 X X | |
46 </div> | |
47 </body> | |
OLD | NEW |