Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managing CSS conflicts

Tags:

css

So i am working with a few CSS developers and every now and then we run into layout issues which have been fixed previously because one of the css developer did something which conflicted with something else.

We are already using SVN .. each CSS guy has his own css file he works with. So my question is what steps should be taken to minimize:

1 : layout conflicts

2 : increasing re-usability of previously written styles.

3 : minimize wasted time trying to merge the styles together in the final css.

I would really appreciate any tips you guys have to offer.

Update: I am not one of the CSS developer, i just take care of the backend stuff.. so please keep in mind that i am a total newbie when it comes to CSS norms.

like image 782
Sabeen Malik Avatar asked Dec 17 '09 01:12

Sabeen Malik


1 Answers

  1. Define a naming convention for your CSS files to prevent conflicts (prefix?)
  2. Have an automated process that you can run before check-in (check-in tests) to see any potential conflicts
  3. Discuss what you will add (code review?) and avoid the conflicts altogether

I dont know of any namespacing you can do to avoid CSS stylesheet name conflicts so, I suggest those. They are things that many large companies do already.

like image 168
santosc Avatar answered Nov 14 '22 03:11

santosc