About this page
Combining CSS :has() And HTML <select> For Greater Conditional Styling — Smashing Magazine
https://smashingmagazine.com/2024/05/combining-css-has-html-select-conditional-styling
“Amit Sheen demonstrates using `:has()` to apply styles conditionally when a certain `` in a `` element is chosen by the user and how we gain even more conditional styling capabilities when chaining `:has()` with other pseudo-classes, such as `:not()` — no JavaScript necessary.” (the page’s own description)
- Topic
- Web Development
- Quality
- Quality 84 scored 12 Aug 2025
- Language
- english
- Text on page
- 6,854 characters
- Page size
- 223 kB
- Answered
- OK (200), HTML
- Last read
- 7 Jul 2025
- In our index since
- 7 Jul 2025
- Safe search
- Not checked yet
- Links to it
- Not counted yet