abspos-static-position.html (528B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <link rel="help" href="https://drafts.csswg.org/css-viewport/#zoom-property"> 5 <link rel="match" href="reference/abspos-static-position-ref.html"> 6 <style> 7 body { 8 margin: 0; 9 zoom: 2; 10 } 11 .parent { 12 margin-top: 50px; 13 margin-left: 25%; 14 height: 100px; 15 outline: 2px solid black; 16 } 17 18 .abspos { 19 position: absolute; 20 width: 100px; 21 height: 100px; 22 background-color: green; 23 } 24 </style> 25 </head> 26 <body> 27 <div class="parent"> 28 <div class="abspos"></div> 29 </div> 30 </body> 31 </html>