Tell us what’s happening:
Describe your issue in detail here.
How do I make an id selector? I keep getting errors. The instruction says ---- " Currently, the img is assuming its default size, which is too large. Correctly, scale the image using it’s id as a selector, and setting the width to max(100px, 18vw) ." Your code so far
/* file: styles.css */
body {
background: #f5f6f7;
color: #1b1b32;
font-family: Helvetica;
margin: 0;
}
/* User Editable Region */
id {width: max(100px, 18vw);}
/* User Editable Region */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Challenge: Learn Accessibility by Building a Quiz - Step 8
I dont see an error message in your last reply. Did you try what was mentioned above? You can show your latest code by using the format button which looks like </>. Paste the new code between the two lines it gives you
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
" scale the image using it’s id as a selector, and setting the width to max(100px, 18vw)"
Now we can look at what pudgie suggested
Try using the #logo selector to complete this lesson. # is the id.
She is saying use the #logo selector because if you look at your html and look at the img you will see it has an id of “logo”. In CSS a # is used to represent that it is an id selector that is being styled.
In your code, you need to replace “id” with the id selector that the img has. Which pudgie has already said what that is