Learn CSS Flexbox by Building a Photo Gallery - Step 4

I’m really not sure where I am going wrong?

Your code so far

<!-- file: index.html -->

<!-- User Editable Region -->

<!DOCTYPE html>
<html>
  <head lang="en">
    <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>
      <div class="header"></div>
    <h1>css flexbox photo gallery</h1>
    </header>
  </body>
</html>

<!-- User Editable Region -->

/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 15183.69.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Learn CSS Flexbox by Building a Photo Gallery - Step 4

Link to the challenge:

As the instruction asked you only to create a header and h1, why would you create a div tag and put the class header in it?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.