Learn Accessibility by Building a Quiz - Step 9

Can someone explain what is meant by the aspect-ratio of 35/4. What does the top number mean and what does the bottom number mean when they refer to svg’s? I clicked on the freeCodeCamp styleguide but it doesn’t tell me much about it or I just can’t find it…

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <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" />
      <img id="logo" src="https://cdn.freecodecamp.org/platform/universal/fcc_primary.svg">
      <h1>HTML/CSS Quiz</h1>

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

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


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn Accessibility by Building a Quiz - Step 9

Link to the challenge:

Padding has a value of “0.4rem” and add a blank space in front of number “4” in the ‘aspect-ratio’ property:

padding: 0.4rem;

its missing an expected value, lets read from instructions to see what that value is

. Finally, add a padding of 0.4rem all around

also address that change about “spacing” what “dobarbrand” has already pointed it out

happy learning :slight_smile:

Ok, but what has the missing padding to do with my question?

Is 35/4 ratio another property for padding? like top-number is padding-top and padding-bottom?

I’m glad for you answer but is it may possible that y’all don’t read my question? I don’t have problems to copy the 0.4rem in the padding-property, I just want to know what 35/4 ratio means…

An aspect ratio is a proportional relationship between an image’s width and height . Essentially, it describes an image’s shape. Aspect ratios are written as a formula of width to height, like this: 3:2. For example, a square image has an aspect ratio of 1:1, since the height and width are the same.

Thank you, that’s exactly what I wanted to know.

1 Like

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