Back to Freecodecamp

Step 8

curriculum/challenges/english/blocks/workshop-flexbox-photo-gallery/64dd136e4e8b0894f9c70d86.md

latest1.8 KB
Original Source

--description--

Now that you have figured out your box-sizing approach, you can clean up the CSS you added to see the changes.

Remove your .gallery and img selectors, and all rules within.

--hints--

You should not have a .gallery selector.

js
assert.notExists(new __helpers.CSSHelp(document).getStyle('.gallery'));

You should not have an img selector.

js
assert.notExists(new __helpers.CSSHelp(document).getStyle('img'));

--seed--

--seed-contents--

html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Photo Gallery</title>
    <link rel="stylesheet" href="./styles.css">
  </head>
  <body>
    <header class="header">
      <h1>css flexbox photo gallery</h1>
    </header>
    <div class="gallery">
      
      
      
      
      
      
      
      
      
    </div>
  </body>
</html>


css
 * {
  box-sizing: border-box;
}

--fcc-editable-region--
.gallery {
  border: 5px solid red;
  width: 50%;
}

img {
  width: 100%;
  border: 5px solid blue;
  padding: 5px;
}
--fcc-editable-region--