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

Copy of COMP6080 21T3 - Live - 7.2 - Units

By haydensmith

Copy of COMP6080 21T3 - Live - 7.2 - Units

  • 502