Ancestors

Toot

Written by Olliew on 2025-01-30 at 12:59

How do you vertically centre a custom CSS ::marker?

=> More informations about this toot | More toots from Olliew@indieweb.social

Descendants

Written by Christopher Kirk-Nielsen on 2025-01-30 at 13:55

@Olliew The available properties are pretty limited, so to avoid any hacky solutions (though maybe there's a good one!), I'd recommend dropping the marker (list-style-type: '';) and re-creating it with a ::before pseudo-element, which you can position absolutely, and whose content you can center any way you'd like: https://codepen.io/chriskirknielsen/pen/yyBwYmd?editors=1100

=> More informations about this toot | More toots from chriskirknielsen@front-end.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113917427595329388
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
250.954912 milliseconds
Gemini-to-HTML Time
0.502787 milliseconds

This content has been proxied by September (3851b).