Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 72 lines (55 sloc) 1.544 kb
de695e5 Fix positioning of CSS3 element when target element is position:fixed. F...
Jason Johnston authored
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <title>Testing position:fixed</title>
6
7 <style>
8
4490ed5 Rename -pie-base-url to -pie-load-path to avoid future confusion
Jason Johnston authored
9 html { -pie-load-path: "../build"; }
dc192f9 Add the -pie-base-url property to all test documents to ensure they pull...
Jason Johnston authored
10
de695e5 Fix positioning of CSS3 element when target element is position:fixed. F...
Jason Johnston authored
11 #forceScroll {
12 height: 10000px;
13 background: url(background1.gif)
14 }
15
16
17 .fixed {
18 position: fixed;
19 top: 100px;
20 background: #EEE;
21 -webkit-border-radius: 10px;
22 -moz-border-radius: 10px;
23 border-radius: 10px;
24 -webkit-box-shadow: #000 0 0 20px;
25 -moz-box-shadow: #000 0 0 20px;
26 box-shadow: #000 0 0 20px;
27 padding: 20px;
28 width: 60px;
29 border: 1px solid;
30 behavior: url(../build/PIE.htc);
31 }
32
33 #test1 {
34 left: 20px;
35 }
36
37 #test2Cont {
38 position: absolute;
39 border: 1px solid red;
40 top: 300px;
41 left: 10px;
42 background: #FFF;
43 }
44 #test2 {
45 left: 160px;
46 }
47
48 #test3 {
49 right: 100px;
50 }
51
52 </style>
53 </head>
54 <body>
55
56 <p>This document tests position:fixed. The rounded boxes should stay in place when scrolling.
57 This won't work in IE6 of course as it does not support position:fixed.</p>
58
59 <div id="forceScroll"></div>
60
61 <div class="fixed" id="test1">Child of body</div>
62
63 <div id="test2Cont">
64 Container
65 <div class="fixed" id="test2">Child of container</div>
66 </div>
67
68 <div class="fixed" id="test3">From right</div>
69
70
71 </body>
72 </html>
Something went wrong with that request. Please try again.