<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
 <body>
  <div style="width:400px;height:225px;background:url(resources/contain-cover.png) no-repeat center center red;background-size:contain"></div>
  <div style="width:400px;height:225px;background:url(resources/contain-cover.png) no-repeat center center red;background-size:cover"></div>
 </html>
