background preloader

Css

Facebook Twitter

Design

Tips. Browser. Javascript. How to structure large CSS files - Friendly Bit. Many methods exist to structure your CSS.

How to structure large CSS files - Friendly Bit

This article tries to describe the method I use. I call it the “Tree method”, since it structures the CSS like… that’s right, a tree structure. I want to stress that it isn’t my invention; I just describe and give reasons for its rules. Everyone that has built a bigger site has had to deal with the mess CSS so easily become. There are ids and classes all over the place, and to find where a certain class is defined you usually need to use some search feature in your editor.