Improve legibility and reduce layout shifts with x-height adjustments
The font-size CSS property sets the majuscule (“uppercase”) text size. The (font-)size-adjust property can set the minuscule (“lowercase”) size independently.
The font-size CSS property sets the majuscule (“uppercase”) text size. The (font-)size-adjust property can set the minuscule (“lowercase”) size independently.
@media hover
queriesThe CSS @media hover query detects hover-capable input devices. Samsung touchscreens on Android gives unexpected results by pretending to be a computer touchpad.
There’s no need to guess the number of negative pixels for a text-indent to create a list item marker or hanging punctuation. Use this CSS technique instead!
Collapsed cell borders adds to the table cell’s line height. So, how do you align your table cells to a line-height/baseline based grid layout?
Web browsers don’t yet support (text-wrap: balance). Adobe and the NY Times have offer free JavaScript alternatives. I improved the latter to suit my needs.
How the default web browser fonts vary, why they are what they are, and how to make your webdesign look the same on different operating systems.
Night mode in Samsung browser explained. How it breaks page contrast and accessibility, pastelify SVG colors, and why web developers can’t do anything about it.
Create section breaks with a <hr> element styled as a traditional asterism (⁂) symbol instead of a horizontal rule.