Quantcast
Viewing all articles
Browse latest Browse all 138

Extreme specificity overriding a CSS ID with 256 chained Classes

From thecssninja.com:

According to the spec, one ID should be infinitely more specific than a class. But as it turns out, if you add 256 classes to a single element (same or different) it will override the ID. Dumb little edge case that probably will never be fixed, but interesting. Ryan Seddon digs in a little more. Direct Link to Article — Permalink…256 Classes Beats an ID is a post from CSS-Tricks

Click here to read more

Tagged: #css #strings #opera


Viewing all articles
Browse latest Browse all 138

Trending Articles