What is the difference between em, rem, %, and px in CSS?

Answer

div {
  font-size: 1.5em; /* Relative to parent */
}

Learn more about CSS units