completefrontend
BLOGS BY TAG

Accessibility

Every blog about Accessibility on CompleteFrontend, newest first.

Title card for px vs em vs rem in CSS, with three blocks: px is a fixed size, em follows the local font size, and rem follows the root font size

HTML and CSS

px vs em vs rem in CSS

px is fixed, em follows the font size of the element or its parent, and rem follows the root font size. Here's how each one works out in pixels, why em…

4 min read