1106669-1-intrinsic-for-container-ref.html (641B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <style> 6 button { 7 position: absolute; 8 border: 1px solid blue; 9 margin: 1px; 10 padding: 0; 11 } 12 div { 13 position: absolute; 14 background: yellow; 15 } 16 </style> 17 </head> 18 <body> 19 20 <button style="top:0px"><img src="" width="20" height="80"></button> 21 22 <button style="top:100px"><img src="" width="80" height="20"></button> 23 24 <!-- solid-color <div>s that should completely cover the buttons above, 25 provided they size themselves properly for their <img> content --> 26 <div style="top:0px; width:40px; height:90px;"></div> 27 28 <div style="top:100px; width:100px; height:40px;"></div> 29 30 </body> 31 </html>