CSS with asStripeClasses

CSS with asStripeClasses

elpadrinoelpadrino Posts: 20Questions: 1Answers: 0
edited February 2014 in General
Hi,

I apply asStripeClasses's parameter for remove "odd" and "even" class to datatables but other css doesn't apply.

Datatable's conf :


http://live.datatables.net/OlAb/1/edit?html,css,js


Any idea is welcome :).

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    I don't really understand I'm afraid. You've set it to be an empty string - which DataTables is adding to each row. If you remove it, then odd/even are added.

    Allan
  • elpadrinoelpadrino Posts: 20Questions: 1Answers: 0
    Hi Allan,

    I add this ligne :

    [code]
    "asStripeClasses": [ '' ]
    [/code]

    For remove "odd" and "even" class, which are the class name by default for each row.
    And after that, i add my customise class "alu" for have an other comportment. (in my case , just add background-color)

    This is a screen of google's console :

    http://i60.tinypic.com/352isjp.jpg

    You can see , class "alu" is implemented but not interpreted and i don't know why.

    I hope it's more understandable.
  • elpadrinoelpadrino Posts: 20Questions: 1Answers: 0
    It's an error in my .css, it's because i don't apply background-color at tr.alu AND td. My bad. It's solved. Thanks for your time.
This discussion has been closed.