attachment-local-positioning-4-ref.html (577B)
1 <!doctype html> 2 <title>CSS Reftest Reference: background-attachment: local</title> 3 <link rel="author" title="Simon Sapin" href="http://exyr.org/about/" /> 4 <style> 5 #outer { 6 border: solid; 7 background: url(aqua-yellow-32x32.png) local no-repeat -10px -10px; 8 overflow: hidden; 9 width: 200px; 10 height: 300px; 11 } 12 div div { 13 width: 250px; 14 height: 370px; 15 } 16 p { 17 margin: 0; 18 padding-top: 100px; 19 text-align: right; 20 position: relative; 21 top: -10px; 22 left: -10px; 23 } 24 </style> 25 <div id=outer> 26 <div> 27 <p><img src=blue-32x32.png style="width: 160px"></p> 28 </div> 29 </div>