CSS - How to do it right

CSS isn’t always easy to deal with. Depending on your skills and your experience, CSS coding can sometimes become a nightmare, particularly if you aren’t sure which selectors are actually being applied to document elements.

A big problem we always have when we create a complex website is organizing the CSS properly. We add comments, we split it into files but the stylesheets still get pretty big if the project is very complex. Not only that but there are also a lot of browser specific CSS properties (such as -moz-border-radius) which make changing something (like the border-radius) very difficult. Well, there is something out there that can help us organize better and it is called LESS. The LESS CSS preprocessor has been out for some time and is well known by only a few developers. It basically enlarges the limits imposed by CSS’s simplicity and allows the code to be compiled into “real CSS”. The coding style of LESS was thought to be a simplified but extensive variant of CSS so regular CSS code writers wouldn’t need too much time migrating to this tool.