Back to Freecodecamp

Step 13

curriculum/challenges/english/blocks/learn-css-flexbox-by-building-a-photo-gallery/6153893900438b4643590367.md

latest3.0 KB
Original Source

--description--

Align your .header text in the center. Make the text uppercase using the text-transform property with uppercase as the value.

Give it a padding of 32px on all sides. Set the background to #0a0a23 and the text to #fff as the color values.

Add a border-bottom with 4px solid #fdb347 as the value.

--hints--

You should have a .header selector.

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

Your .header selector should have a text-align property set to center as the value.

js
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.textAlign, 'center');

Your .header selector should have a text-transform property set to uppercase as the value.

js
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.textTransform, 'uppercase');

Your .header selector should have a padding property set to 32px as the value.

js
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.padding, '32px');

Your .header selector should have a background-color property set to #0a0a23 as the value.

js
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.backgroundColor, 'rgb(10, 10, 35)');

Your .header selector should have a color property set to #fff as the value.

js
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.color, 'rgb(255, 255, 255)');

Your .header selector should have a border-bottom property set to 4px solid #fdb347 as the value.

js
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.borderBottom, '4px solid rgb(253, 179, 71)');

--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;
}
body  {
  margin: 0;
  font-family: sans-serif;
  background-color: #f5f6f7;
}

--fcc-editable-region--

--fcc-editable-region--

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