I recently published an article on facebook discussing a good practice in CSS that we should follow.
At my baby steps in designing (mm may be 3 yrs ago) I wrote a new class for each element and styled them. The funniest thing was most elements had the same style. First styled a class, then copy-pasted to a dozen times. Finally I used to look at them and think "God! I wrote this much!", in which most of them are repetitions which are ctrl+vd. Those days were the funniest..
When I learned Bootstrap, I really liked the way they modularized their CSS. Then I started doing that modularization my own.
At my baby steps in designing (mm may be 3 yrs ago) I wrote a new class for each element and styled them. The funniest thing was most elements had the same style. First styled a class, then copy-pasted to a dozen times. Finally I used to look at them and think "God! I wrote this much!", in which most of them are repetitions which are ctrl+vd. Those days were the funniest..
When I learned Bootstrap, I really liked the way they modularized their CSS. Then I started doing that modularization my own.
Comments
Post a Comment