DEV Community

Cover image for Top 10 most deadly CSS mistakes made by new and experienced developers

Top 10 most deadly CSS mistakes made by new and experienced developers

Bill Mei on July 29, 2019

For years, I've seen numerous engineers working at my clients make the same common mistakes with Cascading Stylesheets (CSS). Even the talented, ex...
Collapse
 
havardob profile image
Håvard Brynjulfsen

Great summary! Totally agree with you, CSS has an undeserved reputation. Every developer thinks they ‘know’ HTML and CSS because it’s basic, it’s the first thing you learn. But writing really good, scaleable CSS and semantically good HTML is hard!

Great tip about not following the DOM!
Preprocessors like SASS and Less makes it so easy to nest selectors to copy the DOM when you don’t have to

Collapse
 
billmei profile image
Bill Mei

Thanks for the feedback! Glad you enjoyed.

Collapse
 
umardaraz profile image
umar-daraz

Hi Bill,
I can relate many mistakes I make writing css with your list.
I would keep this article as reference for my future css work.

Thank you for writing this

Collapse
 
billmei profile image
Bill Mei

Glad you enjoyed! :)