Units in CSS

Selectors in CSS

Units in CSS

ch - character

- equal to the width of a character in the used font,

rem - "root em",

number

used for: line-height, opacity,

percentage -

For example, width is calculated as a percentage of the available width in the parent element.

deg - degree

used for rotational properties.
transform: rotate(80deg)

Numbers, Lengths and Percentage

Relative

Lengths

Selectors in CSS

Units in CSS

Numbers, Lengths and Percentage

Selectors in CSS

Units in CSS

Relative Lengths

Selectors in CSS

Units in CSS

Relative

Lengths

CSS: Units

By Yash Priyam

CSS: Units

  • 6