5 Common CSS mistakes developers make

What mistakes have you made in CSS?⁣

By FAM

If you are starting your carrier as a web developer, CSS is a headache for many developers, based on my experience. It takes time to learn it and master it. This article is covering some common mistakes that you may face when writing CSS code.

Ready, let’s go!

#1: Using px when it’s not needed⁣

Do you know that you don’t need to use px when you want to set the a value to 0:

By FAM

#2: Repeating the same code⁣

Always keep in mind the DRY rule. Don’t repeat yourself. The number of code lines will cost you in terms of app performance and loading time.

By FAM

#3: Using color names⁣

Using a color code is better:

By FAM

#4: Not using shorthand properties⁣

Avoid multiline of code when you can do the same thing with one line:

By FAM

#5: No font fallback⁣

Always complete the font you’re using:

By FAM

Dear reader, I hope this was clear and useful.

I hope you’re safe wherever you are and your family too! Hang in there. Tomorrow will be better!

Let’s get in touch on Medium, Linkedin, Facebook, Instagram, or Twitter.

🔗www.fam-front.com

FAM

I’m a passionate software engineer and woman in the tech world. Find more about me here: 🔗www.fam-front.com. I love to help people and share what I know!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store