Back to Freecodecamp

Step 10

curriculum/challenges/english/blocks/workshop-flexbox-photo-gallery/615f171d05def3218035dc85.md

latest2.4 KB
Original Source

--description--

Remove the margin from your body element, set the font-family to sans-serif, and give it a background-color of #f5f6f7 as the value.

--hints--

You should have a body selector.

js
assert.exists(new __helpers.CSSHelp(document).getStyle('body'));

Your body selector should have a margin property set to 0 as the value.

js
assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.marginTop, '0px');

assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.marginBottom, '0px');

assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.marginLeft, '0px');

assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.marginRight, '0px');

Your body selector should have a font-family property set to sans-serif as the value.

js
assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.fontFamily, 'sans-serif');

Your body selector should have a background-color property set to #f5f6f7 as the value.

js
assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.backgroundColor, 'rgb(245, 246, 247)');

--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--

--fcc-editable-region--

.gallery img {
  width: 100%;
  max-width: 350px;
  height: 300px;
}