OLD | NEW |
1 <!DOCTYPE html> | 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/#shape-outside-prope
rty"> | |
6 <meta name="flags" content="ahem"> | |
7 <style> | 2 <style> |
8 .container { | 3 .container { |
9 font: 40px/1 Ahem, sans-serif; | 4 font: 40px/1 Ahem, sans-serif; |
10 line-height: 40px; | 5 line-height: 40px; |
11 width: 110px; | 6 width: 110px; |
12 height: 40px; | 7 height: 40px; |
13 overflow: hidden; | 8 overflow: hidden; |
14 white-space: nowrap; | 9 white-space: nowrap; |
15 background-color: red; | |
16 color: green; | 10 color: green; |
17 } | 11 } |
18 | 12 |
19 .circle { | 13 .circle { |
20 width: 138px; | 14 width: 138px; |
21 height: 40px; | 15 height: 40px; |
22 background-color: green; | 16 background-color: green; |
23 } | 17 } |
24 </style> | 18 </style> |
25 | 19 |
26 <body> | 20 <body> |
27 <p>You should see a green rectangle. You shouldn't see any red.</p> | 21 <p>You should see a green rectangle. You shouldn't see any red.</p> |
28 <div class="container"> | 22 <div class="container"> |
29 <div style="float: left" class="circle"></div> | 23 <div style="float: left" class="circle"></div> |
30 X | 24 X |
31 </div> | 25 </div> |
32 | 26 |
33 <div class="container" style="text-align: right"> | 27 <div class="container" style="text-align: right"> |
34 <div style="float: right" class="circle"></div> | 28 <div style="float: right" class="circle"></div> |
35 X | 29 X |
36 </div> | 30 </div> |
37 </body> | 31 </body> |
OLD | NEW |