Put in order · HTML and CSS course · Module 5: Responsiveness

CSS unit flexibility

Arrange CSS units from least to most responsive-friendly:

Items to put in order

  • em (relative to parent)
  • px (fixed pixels)
  • rem (relative to root)
  • vw (percentage of viewport width)

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