Follow

Looking to add a bit of top margin to feed reader items that start with an image, i.e., with no text node in front (the image itself can still sit within a `figure`, `p`, etc., nested deeper, even). (Line-height doesn’t “stick out” above most images, and `:first-child` doesn’t work because it ignores text nodes.) Used a bit of JS but might look into PHP’s DomDocument functions again.

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!