A beginner lesson from the Coding for Beginners series for designers, explaining how font-size works in CSS with pixels, ems, rems and percentages. It also covers how font sizes are inherited from parent and root elements.
What you’ll learn
✓Compare px, em, rem and percentage units for font-size in CSS
✓Calculate a child element's font size from its parent's size
✓Set the root html font size to make rem values easier to work out