Mbadady
February 4, 2022, 10:05pm
1
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;
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
system
Closed
August 7, 2022, 7:42am
7
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.