DEV Community

Discussion on: What is the biggest mistake new developers make when learning CSS?

Collapse
 
darthknoppix profile image
Seth Corker

Great points, I think cascading is the most powerful and misunderstood concepts in CSS. I know of developers new to CSS who try and wrestle with cascading and force styles using !important or using ids instead of class selectors.

Collapse
 
alohci profile image
Nicholas Stimpson

Yes. I think there's a couple of difficulties with the cascade, not only for beginners but even for intermediate CSS devs. The first is that you have to understand it in its entirety to be able to use it effectively. The other is there are very few guides on how to choose complex selectors to exploit specificity to your advantage. The mechanics of specificity is widely described, but there's very little about why it can work so well if it's used correctly.