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: 60px; | |
13 height: 100px; | |
14 border: 1px solid black; | |
15 color: green; | |
16 display: inline-block; | |
17 background-color: red; | |
18 -webkit-writing-mode: vertical-lr; | |
19 } | |
20 | |
21 #float-left { | |
22 float: left; | |
23 width: 20px; | |
24 height: 100px; | |
25 background-color: green; | |
26 } | |
27 | |
28 #float-right { | |
29 float: right; | |
30 width: 20px; | |
31 height: 100px; | |
32 background-color: green; | |
33 } | |
34 </style> | |
35 | |
36 <body> | |
37 <p>This should display two green rectangles. You should not see any red.</p> | |
38 <div class="container"> | |
39 XXXXX | |
40 <div id="float-left"> | |
41 </div> | |
42 XXXXX | |
43 </div> | |
44 <div class="container"> | |
45 XXXXX | |
46 <div id="float-right"> | |
47 </div> | |
48 XXXXX | |
49 </div> | |
50 </body> | |
OLD | NEW |