nicoledag / Colmaracademy

0 stars 0 forks source link

CSS names #4

Open rimmesbe opened 6 years ago

rimmesbe commented 6 years ago

Generally, I recommend avoiding selector names that signify position, order, or version. Websites tend to get rearranged a lot and then the names stop making sense and need to be changed. I could see left used if the styling it applied made an element go left, but in this case, it just affects the size. A name like .container-lg and .container-sm might make more sense.

https://github.com/nicoledag/Colmaracademy/blob/master/resources/css/style.css#L25-L31