Skip to main content

Posts

Showing posts from June, 2016

Save a lot by modularizing your CSS.

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+v d. 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. Now here is a note for kids who are getting started.