Learn CSS Flexbox by Building a Photo Gallery - Step 1

Tell us what’s happening:
I am getting an error message that states: " Test: Sorry, your code does not pass. Hang in there.; Hint: The head and body elements should be siblings.
From what I see, they are in line with each other as siblings. I tried moving on to this assignment because I was getting a similar error message on the Rothko painting assignment and couldn’t get past the first step there either, with exactly the same code.

I did see this question was answered previously, but the response there was something I have already tried…

I have refreshed the page to see if it would accept the answers and I also reset the code, re-entering it several times. None of this has worked for either assignment. How can I rectify this issue so that I can continue this section of the certification?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>

  </head>
  <body>

  </body>
</html>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0

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

Link to the challenge:

Okay, I tried it again after going to the Nutrition Facts assignment and passing some tests there and then coming back to the photo gallery. but the Rothko painting code still isn’t working and it’s the same code.

Welcome to our community!

Note: Some browser extensions, such as ad-blockers and dark mode extensions can interfere with the tests. If you face issues, we recommend disabling extensions that modify the content or layout of pages, while taking the course.

Awesome! I disabled it and it worked! Thanks!

1 Like