Link tags: after

4

sparkline

CSS { In Real Life } | Quick Tip: Style Pseudo-elements with Javascript Using Custom Properties

Oh, this is smart! You can’t target pseudo-elements in JavaScript, but you can use custom properties as a proxy instead.

Diving into the ::before and ::after Pseudo-Elements / Coder’s Block

A thorough deep dive into generated content in CSS.

Styling Broken Images

This is really, really clever. You can’t use generated content (:before and :after) on replaced content. The img element is replaced content …but only when the image actually loads. So if the image fails to load, you can apply specific fallback styles (using :before and :after).

The Nor » Living in the Electromagnetic Spectrum

James takes a tour through the English countryside, while venturing into areas of the electromagnetic spectrum that may as well be labelled “Private Property. No Trespassing. Keep Out.”