<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>object-fit</title>
  <link rel="stylesheet" href="style.css" />
</head>
<body>
  <header class="page-header">
    <h1>object-fit</h1>
    <p class="lead">How a replaced element (img/video) fills its box.</p>
  </header>
  <main class="demo">
    <div class="row2">
      <figure><img class="fit fill"    src="https://picsum.photos/200" alt="" /><figcaption>fill</figcaption></figure>
      <figure><img class="fit contain" src="https://picsum.photos/200" alt="" /><figcaption>contain</figcaption></figure>
      <figure><img class="fit cover"   src="https://picsum.photos/200" alt="" /><figcaption>cover</figcaption></figure>
    </div>
  </main>
</body>
</html>