Css attribute not equals to
I’ve been using a lot of :before and :after recently to add FontAwesome icons to items for visual display and need an icon to display only when an attribute is not empty. Repeating the selector inside a not achieves this behavior:
Snippet
[data-groupid]:not([data-groupid=""])Â strong:after{}
Leave a Reply