5 Common CSS mistakes developers make

what is 100 width bug in css implementations,13th common css,most common css properties,one area of problem for css3 is,common html mistakes,css errors,avoid css,css separate layout and style

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⁣

what is 100 width bug in css implementations,13th common css,most common css properties,one area of problem for css3 is,common html mistakes,css errors,avoid css,css separate layout and style
 
Do you know that you don’t need to use px when you want to set the a value to 0:

2. Repeating the same code⁣

what is 100 width bug in css implementations,13th common css,most common css properties,one area of problem for css3 is,common html mistakes,css errors,avoid css,css separate layout and style
 
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.

3. Using color names⁣

what is 100 width bug in css implementations,13th common css,most common css properties,one area of problem for css3 is,common html mistakes,css errors,avoid css,css separate layout and style
 
Using a color code is better:

4. Not using shorthand properties⁣

what is 100 width bug in css implementations,13th common css,most common css properties,one area of problem for css3 is,common html mistakes,css errors,avoid css,css separate layout and style
 
Avoid multiline of code when you can do the same thing with one line:

5. No font fallback⁣

what is 100 width bug in css implementations,13th common css,most common css properties,one area of problem for css3 is,common html mistakes,css errors,avoid css,css separate layout and style

Always complete the font you’re using:

 
 

Post a Comment

Previous Post Next Post