<!-- Scroll down for a sample solution -->


























<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>CSS Float</title>
  <style>
    div {
      display: inline-block;
      width: 40%;
    }

    p {
      font-size: 2em;
    }

    .cat {
      float: left;
      background-color: aquamarine;
    }

    .dog {
      float: right;
      background-color: coral;
    }

    img {
      floa