Learn Accessibility by Building a Quiz - Step 8

Tell us what’s happening:

I have been staring at this problem for awhile. It seems like I have everything. But it keeps saying “You should use the #logo selector to target the img element”

This is the section I am referring to:
#logo{
width: max(100px, 18vw);
}

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="freeCodeCamp Accessibility Quiz practice project" />
    <title>Accessibility Quiz</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <header>
      <img id="logo" alt="freeCodeCamp" src="https://cdn.freecodecamp.org/platform/universal/fcc_primary.svg">
      <h1>HTML/CSS Quiz</h1>
      <nav></nav>
    </header>
    <main></main>
  </body>
</html>

/* file: styles.css */
body {
  background: #f5f6f7;
  color: #1b1b32;
  font-family: Helvetica;
  margin: 0;
}


/* User Editable Region */

#logo{
width: max(100px, 18vw);
}

/* User Editable Region */


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn Accessibility by Building a Quiz - Step 8

That’s strange. You should be getting You should give the img a width of max(10rem, 18vw). as an error message. Perhaps you need to refresh your browser cache?

1 Like

Thank you! I figured it out! I did need to refresh it!

1 Like

how did you do it? please exalain