<!DOCTYPE html> <body> <div style="display: inline-block; background: blue; height: 200px"> <img src="lime100x100.png" style="height: 200px; display: block; visibility: hidden; padding: 15% 30px; box-sizing: border-box;"> </div> </body>