<!DOCTYPE html>

<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Flexbox with Cats!</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" href="style.css" />
  </head>

  <body>
    <div class="outer-container">
      <div class="cat-box">
      <img
        src="https://github.com/kefimochi/Flexbox-with-cats/blob/master/Part%201/MyCat.png?raw=true"
        alt="Illustration of a black cat staring at the user"
      />
      <img
        src="https://github.com/kefimochi/Flexbox-with-cats/blob/master/Part%201/MyCat.png?raw=true"
        alt="Illustration of a black cat staring at the user"
      />
      <img
        src="https://github.com/kefimochi/Flexbox-with-cats/blob/master/Part%201/MyCat.png?raw=true"
        alt="Illustration of a black cat staring at the user"
      />
      </div>
    </div>
  </body>
</html>
body {
  background-color: #7c4444;
  margin: 0;
}

.outer-container {
  /* 100vh meaning 100% of the current screen, so if your screen's height is 500px then 100vh will equal to 500px */
  height: 100vh;  
  /* width auto basically says scale width accoding to the height while keeping the same proportions  */
  width: auto;
  display:flex; 
  align-items: center;
  justify-content: center;
}

.cat-box {
  display: flex;
  /* Flex wrap will be covered in Part 3 in the responsive section, essencially it just wraps elements together and does not allow them to make a sideways page scroll.    */
/*   flex-wrap: wrap; */
  align-items: center;
  justify-content: center;
  background-color: #f1dfd8;
  height: 500px;
  width: 1000px;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25),
    0 0 4rem 0px rgba(100, 100, 100, 0.15);
}

img {
  height: 200px;
  width: auto;
  border: 2.5px solid black;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.