Aspect ratio for learn accessibility by building a quiz

I am finding it difficult using the aspect-ratio for the learn accessibility by building a quiz section step 9. See below the link and the code i wrote on CSS for the aspect-ratio

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

the logo should retain an aspect ratio of 35:4

35/4

1 Like

What is the syntax for this because I tried using
aspect-ratio: 35:4; but I was getting an error

Formal syntax for CSS aspect-ratio

I think most use W / H but you can use a decimal representation if you want.

2 Likes

thank you very much. it worked

@Mbadady Just as an FYI, when you see some blurred text you can click it to see the spoiler.

This is hidden until you click it

1 Like

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