Trace  Hoeger

Trace Hoeger

1620645300

5 CSS Practices To Avoid as a Web Developer

Some people think that CSS is difficult to learn. There are lots of crutches and even some magic, which makes it easy to shoot yourself in the foot. I feel sad about this since I don’t think so.

After some thought about what can be done, I’ve come up with five developer habits that I don’t like and will show you how to avoid them.

1. Set Margins or Padding and Then Reset Them

I often see people set margins or padding for all elements and then reset them for the first or last element. I don’t know why they use two rules when you can get by with one. It’s much easier to set margins and padding for all the required elements at once.

#web-development #css #front-end-development #programming #javascript

5 CSS Practices To Avoid as a Web Developer