Units

key points

  • 0 can only be used for length values and percentages, it can’t be used for angular values, such as degrees or time-based values like seconds.

  • Properties that support unitless values include line-height, z-index, and font-weight (700 is equivalent to bold; 400 is equivalent to normal, and so on).

units

  • absolute

  • relative

  • percentage

Last updated