|
1 <!DOCTYPE html> |
|
2 <!-- Any copyright is dedicated to the Public Domain. |
|
3 - http://creativecommons.org/publicdomain/zero/1.0/ --> |
|
4 <html> |
|
5 <head> |
|
6 <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com"> |
|
7 <style> |
|
8 #scroll { |
|
9 height: 100px; |
|
10 overflow: hidden; |
|
11 } |
|
12 #sticky { |
|
13 position: relative; |
|
14 height: 10px; |
|
15 background-color: black; |
|
16 } |
|
17 </style> |
|
18 </head> |
|
19 <body> |
|
20 <div id="scroll"> |
|
21 <div style="height: 80px"></div> |
|
22 <div id="sticky"></div> |
|
23 </div> |
|
24 </body> |
|
25 </html> |