The Two-Word Fix for Ugly Headline Wrapping
A headline that wraps leaving one lonely word on the second line looks broken. text-wrap: balance makes the browser distribute the words evenly, and text-wrap: pretty fixes paragraphs.
Step-by-step programming tutorials on PHP, JavaScript, Laravel, WordPress and more.
A headline that wraps leaving one lonely word on the second line looks broken. text-wrap: balance makes the browser distribute the words evenly, and text-wrap: pretty fixes paragraphs.
A swipeable, momentum-friendly, accessible carousel needs no JavaScript at all. scroll-snap turns a plain overflow container into one, and it feels native because it is.
Custom checkbox hacks - hidden inputs, pseudo-element ticks, sprite images - solved a problem that accent-color now handles in a single declaration.
Style a form field wrapper based on the input inside it, a card based on whether it has an image, a layout based on its content - all in pure CSS with :has().