Aspect ratio issue

So, I’ve tried to do this in a few ways and looked in various places. But I can’t get the aspect ratio selector right.

Here’s the code I have:

#logo {
 width: max(100px, 18vw);
	background-color:#0a0a23;
	padding:0.4rem;
	aspect-ratio:35/4;
}

The hint is that

‘You should use the aspect-ratio property.’

After checking online I was pretty sure I’ve got the formatting for aspect ratio right but perhaps I’m missing something.

Challenge: Step 9

Link to the challenge:

The code you have shared works on my end. Please ensure that you have disabled any extensions that interface with the freeCodeCamp website (such as Dark Mode and Ad Blocker), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

Or you can try another browser

I’m doing this on my iPad and that’s likely causing the issue. Sometimes it just makes correct code not work for some reason—which I forget about until it decides to throw a wrench in the works. :sweat_smile:

I’ll redo it on my Mac and it should behave then.

1 Like

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