COMP6080

Web Front-End Programming

Week 7.2

Units

Unit Comparison

How do we choose between em, px, %, pt??

W3 has a very clear and authorative explanation of the matter. The short answer is that em, px, and % cover the vast majority of use cases:

  • Fonts: em
  • Fixed sized items: px
  • Variable sized items: %

Feedback

Made with Slides.com