css selectors - CSS - prioritizing css rules -


I have a project table with strange and even row color for better view:

  Tr: nth-child (even) {background: #CCC} tr: nth-child (weird) {background: #fff}   

my There is also a code which checks whether the project is delayed and if I paint all the project lines in red (rather than the usual colors of strange rows)

In addition, each line In The class depends the name of the class when the project is late or not. Classes are:

  .redBackground {background-color: # CD5C5C;} .yellowBackground {background-color: # FFFF00;} .noBackground {}   

The problem is that any class that is not in the line, even the weird lines of CSS always "wins", so I never see a red or yellow background how do I get it late in the date of delay Work, will it show red and yellow sections, and in the regular case will it be strange or even?

Post text "itemprop =" text ">

Use more selectors, for example

  table tr.redBackground {background-color: # CD5C5C;}    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -