Kevin Powell - CommunityKP-C
Kevin Powell - Community13mo ago
125 replies
McMarty

Tips for writing clean, maintainable CSS

I am getting back into web development after like 8 years off. In the past, I created a fairly elaborate website, but the code-base was a bird's nest and unmaintainable.

Am currently building a responsive. mobile-first replacement for the aforementioned website, and I want to learn how to code like a professional front-end developer, and write code that is CLEAN, CLEAR, CONCISE, SCALABLE, and EASY-TO-MAINTAIN.

For now I am coding PURE HTML5 and CSS3 and want to stay away from frameworks as that won't help me to become a better developer.

What coding styles / approaches will help me to write better CSS?

Am reading "Smashing Book 5" right now, and in the "Testing and Debugging for Responsive Web Design" the author mentions "BEM".

Even 8-10 years ago, I knew there were better HTML / CSS coding approaches, but at the time I was focused on getting a working website, so I never dived into how to code "smart".

Would appreciate some advice and wisdom on this topic!!!
Was this page helpful?