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 -webkit-writing-mode: vertical-lr; | |
18 } | |
19 | |
20 #float-left { | |
21 float: left; | |
22 width: 20px; | |
23 height: 20px; | |
24 } | |
25 | |
26 #float-right { | |
27 float: right; | |
28 width: 20px; | |
29 height: 20px; | |
30 } | |
31 </style> | |
32 | |
33 <body> | |
34 <p>This should display two vertical green bars, with white squares on one en
d.</p> | |
35 <div class="container"> | |
36 <div id="float-left"> | |
37 </div> | |
38 X X X X | |
39 </div> | |
40 <div class="container" style="text-align: right"> | |
41 <div id="float-right"> | |
42 </div> | |
43 X X X X | |
44 </div> | |
45 </body> | |
OLD | NEW |