Update css-style-default-links.md
This commit is contained in:
committed by
GitHub
parent
241788d751
commit
ed31d27c8f
@ -10,7 +10,7 @@ excerpt: A short summary of your story up to 180 characters long.
|
||||
firstSeen: 2022-11-23T05:00:00-04:00
|
||||
---
|
||||
|
||||
When styling injected or generated HTML content, you might not have access to the classes or IDs of the elements you want to style. This can become especially annoying when dealing with link elements. Luckily, you can use the `:not()` selector with an appropriate attribute selector to check for the abscence of a class and style links accordingly.
|
||||
When styling injected or generated HTML content, you might not have access to the classes or IDs of the elements you want to style. This can become especially annoying when dealing with link elements. Luckily, you can use the `:not()` selector with an appropriate attribute selector to check for the absence of a class and style links accordingly.
|
||||
|
||||
```css
|
||||
a[href]:not([class]) {
|
||||
|
||||
Reference in New Issue
Block a user