Write down a selector that will match any links end in .zip, .ZIP, .Zip etc…

Technology Community › Category: CSS › Write down a selector that will match any links end in .zip, .ZIP, .Zip etc…
VietMX Staff asked 5 years ago

Use case-insensitive attribute matching, i. This is a new feature in CSS Selectors Level 4.

Consider:

a[href$=".zip" i]:after {
  content: '↓'
}