Is there a CSS style guide for large existing projects. Or how could I optimize the css for a large project [closed]

StackOverflow https://stackoverflow.com/questions/17568212

Question

I am currently working on a large scale project with mutiple frontend and backend devs. It is basically a large e-commerce solution with different brands in mind that have the same core structure but different styles and layouts.

My question is this:

Is there a css style guide for large existing projects? Or how could we refactor code optimally without loosing logic and breaking stuff?

The styles are chaotic and in need for desperate re-factoring. We got part of the project from our client and we were kinda forced to style and work on those existing layouts and styles.

In some parts we have 10 generations of selectors and often we need to supply !important rules just to get the job done.

I`m sorry I cannot give you code or a sample because of legal obligations.

Was it helpful?

Solution

Nowadays CSS becoming more powerful than JavaScript.With help of Media Query u can specify conditions thus breaking up your Css Structure.Also there are lots of directive tags starting with '@', which are more powerful .Go through those tags.You will get better support only in CSS 3 and not in CSS 2.1

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top