How can I disable alternative row coloring for individual table?

How can I disable alternative row coloring for individual table?

buaayttbuaaytt Posts: 12Questions: 0Answers: 0
edited November 2013 in General
For example, there's just 1 table for which I want all rows to have the same background color. But other tables still use the alternative coloring. Is there any option to accomplish this?

Thanks.

Replies

  • syndesissyndesis Posts: 12Questions: 0Answers: 0
    something like this should work:

    #mytable .even { background-color: #aabbcc }
    #mytable .odd { background-color: #aabbcc }
  • allanallan Posts: 62,769Questions: 1Answers: 10,326 Site admin
    You can also set asStripeClasses to be an empty array.

    Allan
  • buaayttbuaaytt Posts: 12Questions: 0Answers: 0
    Thanks for reply. Unfortunately, neither works. Definitions of css embedded in html header can't overwrite ones defined in bootstrap.css. And setting asStripeClasses to '[]' or 'null' has no effect at all.
  • buaayttbuaaytt Posts: 12Questions: 0Answers: 0
    never mind. found the solution. it's bootstrap's problem. Thanks.
  • allanallan Posts: 62,769Questions: 1Answers: 10,326 Site admin
    We didn't know you were using Bootstrap - they use :even and :odd selectors to provide row striping.

    Allan
This discussion has been closed.