OLD | NEW |
---|---|
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 | 3 |
4 <style> | 4 <style> |
5 #outer { | 5 #outer { |
6 padding-top: 200px; | 6 padding-top: 200px; |
7 /* background-size is implicitly set to initial via the background shorthand . */ | 7 /* background-size is implicitly set to initial via the background shorthand . */ |
8 background:-webkit-gradient( | 8 background:-webkit-gradient( |
9 linear, | 9 linear, |
10 left top, | 10 left top, |
11 left bottom, | 11 left bottom, |
12 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1)) | 12 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1)) |
13 ); | 13 ); |
14 } | 14 } |
15 | 15 |
16 #inner { | 16 #inner { |
17 height: 300px; | 17 height: 300px; |
18 } | 18 } |
19 </style> | 19 </style> |
20 | 20 |
21 </head> | 21 </head> |
22 <body> | 22 <body> |
23 <div id='outer'> | 23 <div id='outer'> |
24 <div id='inner'> | 24 <div id='inner'> |
25 </div> | 25 </div> |
26 </div> | 26 </div> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |