Comment

Comment by mokkos

she's referring to "classitis": http://www.sitekin.com/blogdetail/avoid_CSS_Classitis

in that example, classitis is when you give a class "item" to every li element, the using .item to style it while the alternate way to do it is using the descendent selector (.parentcontainer li). Nicole Sullivan is saying this can lead to specificity war over time.

parent mokkos 15 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton