DEV Community

ryanAllMad
ryanAllMad

Posted on

Biggest CSS Mistakes to avoid

If you're not a fan of CSS, or if you're brand new to front end coding, you might run the risk of making needless errors when you're developing the styling of your products. Learn the biggest CSS mistakes to avoid and how to prevent them, and even how to fix them when you find them.

Links in this post will forward you to a longer, 14 minute, informative blog post.

Why do I need to learn this? I hate CSS.

If you hate CSS, trust me when I say, the rest of us can tell. Regardless of your feelings on the language, best practices should always be followed, and CSS can be pretty cool actually.

We need to know these things because Web Development is all about building on top of others' code. CSS is no exception, it is in fact designed to build upon itself.

Whether you're working with the latest supported version of a language, a new framework, or trying to make your product work with someone else's code; to scale you need a solid foundation.

Let's get right into The Biggest CSS Mistakes to Avoid:

Top comments (4)

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️ • Edited

Why do I need to learn this? I hate CSS.

<rant>

People who say this are among the top 10 things that annoy me in the world of software.

Specially when it comes from the kind of gate-keeping incompetent javascript developer who thinks they're somehow smarter for using a "real programming language" instead of some "simple" yet somehow also "incomprehensible" language like CSS that doesn't even have loops or variables*.

It's one thing to dislike CSS and spend the minimum time necessary learning it and interacting with it. But avoiding it altogether, at least when the job** actually requires CSS knowledge, is just dumb.

* Stop. I know what you're typing. No. They're not variables. They're custom properties.

** Job as in a thing that needs to get done, not necessarily in the sense of employment (but that too, I guess).

</rant>

Collapse
 
ryanallmad profile image
ryanAllMad

LOL! It bewilders me honestly. I'm not sure I understand disliking any language or arguing it's validity. But I love CSS so maybe I'm biased 😂

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

I totally understand not liking some language. I even understand not using it if there's some alternative that does the same thing differently. If a chef decides to use a vegetable cleaver instead of a chef's knife, they may still do their job. But refusing to learn CSS is more like insisting on using a butter knife to make sushi xD

Thread Thread
 
ryanallmad profile image
ryanAllMad

Lol true.