Question · JavaScript and React course · Module 14: Advanced Styling

Benefits of a Spacing Scale

Why is it worth using a spacing scale (4px, 8px, 16px, 24px) instead of arbitrary values?

Answer options

  • It guarantees visual consistency -- elements are evenly spaced
  • It speeds up CSS rendering in the browser
  • It is required by the CSS specification
  • It reduces the CSS file size by 50%

You can check the correct answer by solving this task in the CodeWorlds game.