CSS FLEXBOX Step 5

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
\ file: <!DOCTYPE html>
<html>
<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>
  <div class="header">
    <div id="gallery">
    <h1>CSS FLEXBOX PHOTO GALLERY</h1>
  </div>
  <gallery>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    </div>
</body>
</html>
<!DOCTYPE html>
<html>
<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>
  <div class="header">
    <div id="gallery">
    <h1>CSS FLEXBOX PHOTO GALLERY</h1>
  </div>
  <gallery>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    <img></img>
    </div>
</body>
</html>
\ file: 

  **Your browser information:**

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

Challenge: Step 5

Link to the challenge:

Hello there, i need some Help, i dont really understand what for a kind of Gallery element or class? i should add here. I think i didnt got this task before?
Pls help, what is it, what i have to do here, what for a Gallery should i add? or should i add CSS? pls help guys

Hihi! You actually mostly have it right, you just put some stuff in the wrong place.

This part is correct! the images go inside of the <div> with the id gallery

This part you don’t need! So you’re wanting to do something like this:

MOD edit: Solution removed

Does that make sense?

1 Like

oh man didnt know, that the img element are self closing or i have forget it.
Thank you so much for your help

no problem! Glad I could help

2 Likes

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

I will keep that in mind, sorry for doing that

3 Likes

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