calc-offsets-relative-left-1-ref.html (548B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>CSS Reference: Test for left:calc() on relatively positioned elements</title> 5 <link rel="author" title="L. David Baron" href="https://dbaron.org/"> 6 <style type="text/css"> 7 body { margin: 0 100px; width: 100px } 8 div[style] { background: blue; position: relative; height: 3px; } 9 </style> 10 </head> 11 <body> 12 13 <div style="left: 50px"></div> 14 <div style="left: -50px"></div> 15 <div style="left: 75px"></div> 16 <div style="left: -45px"></div> 17 <div style="left: 40px"></div> 18 <div style="left: -30px"></div> 19 </body> 20 </html>