Day 943
CSS selectors based on attributes
Was redesigning my website, looked if there’s a smarter way to color links based on whether they are internal/external than manually adding classes to them. Well there is: Attribute selectors - CSS: Cascading Style Sheets | MDN
Attributes can be parsed based on prefixes, suffixes, containing something, belonging to a predefined list etc.
Full list: CSS selectors - CSS: Cascading Style Sheets | MDN
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus