| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 #slidein { | 3 #slidein { |
| 4 width: 200px; | 4 width: 200px; |
| 5 height: 200px; | 5 height: 200px; |
| 6 -webkit-transform: translate3d(200px, 0, 0); | 6 transform: translate3d(200px, 0, 0); |
| 7 } | 7 } |
| 8 | 8 |
| 9 #header { | 9 #header { |
| 10 position: relative; | 10 position: relative; |
| 11 height: 50px; | 11 height: 50px; |
| 12 z-index: 1; | 12 z-index: 1; |
| 13 background-color: green; | 13 background-color: green; |
| 14 } | 14 } |
| 15 | 15 |
| 16 #section { | 16 #section { |
| 17 position: absolute; | 17 position: absolute; |
| 18 overflow: hidden; | 18 overflow: hidden; |
| 19 top: 0; | 19 top: 0; |
| 20 width: 200px; | 20 width: 200px; |
| 21 } | 21 } |
| 22 | 22 |
| 23 #content { | 23 #content { |
| 24 width: 200px; | 24 width: 200px; |
| 25 height: 200px; | 25 height: 200px; |
| 26 -webkit-transform: translateZ(0); | 26 transform: translateZ(0); |
| 27 background-color: blue; | 27 background-color: blue; |
| 28 } | 28 } |
| 29 </style> | 29 </style> |
| 30 | 30 |
| 31 <div id="slidein"> | 31 <div id="slidein"> |
| 32 <div id="header">This div should stay in front.</div> | 32 <div id="header">This div should stay in front.</div> |
| 33 | 33 |
| 34 <div id="section"> | 34 <div id="section"> |
| 35 <div id="content"> | 35 <div id="content"> |
| 36 This div should stay behind the header div. | 36 This div should stay behind the header div. |
| 37 </div> | 37 </div> |
| 38 </div> | 38 </div> |
| 39 </div> | 39 </div> |
| OLD | NEW |