dynamic-offset-rtl-001-ref.html (553B)
1 <!DOCTYPE HTML> 2 <head> 3 <meta charset="UTF-8"> 4 <title>CSS Test Reference: dynamic changes to offset properties</title> 5 <link rel="author" title="L. David Baron" href="https://dbaron.org/"> 6 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 7 <style> 8 9 body { 10 margin: 0; 11 } 12 13 #container { 14 position: absolute; 15 width: 100px; 16 height: 100px; 17 background: yellow; 18 } 19 20 #abspos { 21 margin-top: 10px; 22 margin-left: 70px; 23 width: 10px; 24 height: 10px; 25 background: fuchsia; 26 } 27 28 </style> 29 30 <div id="container"> 31 <div id="abspos"></div> 32 </div>