Learn CSS Flexbox by Building a Photo Gallery - Step 4

Tell us what’s happening:

I’m having trouble with this problem in the code. Would someone be able to help me with this? If so, I’d really appreciate it

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 class:"header">
    <h1>css flex photo gallery</h1>
    </header>
  </body>
</html>

<!-- User Editable Region -->

/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Flexbox by Building a Photo Gallery - Step 4

Hey there,

That is not how you assign a class to an element.
Also, make sure to write the exact text given to you in the instructions inside the h1 element.
Good luck!

1 Like

Hey Buddy See here how you’ve assigned the name attribute like same you need to assign your header class in your header class.

Hope You Understand.

1 Like