<!DOCTYPE html> <body> <div style="display: inline-block; background: blue; height: 120px; border: 40px transparent solid"> <img src="lime100x100.png" style="height: 100%; display: block; visibility: hidden;"> </div> </body>