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: 20px/1 Ahem, sans-serif; | |
11 line-height: 20px; | |
12 width: 100px; | |
13 height: 20px; | |
14 border: 1px solid black; | |
15 color: green; | |
16 display: inline-block; | |
17 } | |
18 | |
19 #float-left { | |
20 float: left; | |
21 width: 20px; | |
22 height: 20px; | |
23 } | |
24 | |
25 #float-right { | |
26 float: right; | |
27 width: 20px; | |
28 height: 20px; | |
29 } | |
30 </style> | |
31 | |
32 <body> | |
33 <p>This should display two horizontal green bars, with white squares on oppo
site sides.</p> | |
34 <div class="container"> | |
35 <div id="float-left"> | |
36 </div> | |
37 XXXX | |
38 </div> | |
39 <div class="container"> | |
40 <div id="float-right"> | |
41 </div> | |
42 XXXX | |
43 </div> | |
44 </body> | |
OLD | NEW |