2 ms·
But can't you do .selector:not(:last-child) ? Or .selector + .selector ? Both of these seem clearer than adding an extra property just to handle this case. Lik
by MrJohz 2y ago
But can't you do .selector:not(:last-child) ? Or .selector + .selector ? Both of these seem clearer than adding an extra property just to handle this case.
Like, I understand the situation, I've been in that place plenty of times. But I've never felt in want of a solution there.
- deleted 2y ago[deleted]
- spdustin 2y agoI often use the so-called "lobotomized owl selector" (* + *) in the reset I use for my own internal tools. More specifically: * { margin: 0; padding: 0; } * + * { margin-top: 1em; }