This unit references to the root font size. Eg 1rem is the same as the root
font size.
.two-rem {
font-size: 2rem;
}
This unit references to the parent font size. Eg 1em is the same as the root
font size.
.icon {
font-size: 1.5em;
}
Those two units represent the users viewport. So 100vw are 100% of the users
view-width
.vw{
width: 30vw;
}
.vh {
height: 30vh;
}
This property is also relativ to the font size. More specifict to the width of the 0 char. This is mostly usefull to set the width of inputs or paragraphs
This text will be not be longer than 20chars. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna
.ch {
width: 20ch;
}