Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by dalmo3

9 days ago

Ah, I only now opened your example code.

If you wrap the li contents in a div, you can handle them as a unit separately from ::before.

Then subgrid solves the problem of treating nested elements as siblings.

https://jsfiddle.net/3617wdmf/1/

0 comments

dalmo3

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities