Optimizing and organizing your CSS code

As how we semantically approach our HTML code for a better structured mark-up, that’s how we need to approach CSS as well.

Setting global and local styles.
You probably haven’t heard of ‘local styles’ because I pretty much named them now and I like to think of ‘local styles’ as those we set for certain regions in our HTML document, like a box model which we can reuse throughout our document, while thinking of ‘global styles’ as those we set for the entire document, like links, heading tags and so on.

Often we meet stylesheets that contain overly used CSS … Read article

Read More