filter box and row colors

filter box and row colors

remsyremsy Posts: 10Questions: 0Answers: 0
edited December 2010 in General
Hi. I'd like to know how to increase the width of the filter box, I am using demo_table_jui.css. I was able to align it to the left but can't find a way to change the box itself, property is .dataTables_filter

Another question, how can I assign the row background (even/odd) color upon initialization, is it under aoColumns? if so, how? Also disable background color for the column being sorted.

thanks

Remsy

Replies

  • allanallan Posts: 65,459Questions: 1Answers: 10,872 Site admin
    div.dataTables_filter input { width: 200px } ?

    and

    tr.odd { background-color: red; }
    tr.even { background-color: blue; }

    The other class names used for the sorting can be found either from Firebug or here http://datatables.net/styling/ids_classes .

    Allan
  • remsyremsy Posts: 10Questions: 0Answers: 0
    Hi Allan, excuse my ignorance, can indicate where do we insert these lines, is it in the css or inside the table initialization block? Can you give me an example ?

    regards

    Remsy
  • CorranCorran Posts: 10Questions: 0Answers: 0
    Remsy,

    You put the css in your .css file. Or if you don't have one you put it in a style block in your page header.

    I hope that helps.
This discussion has been closed.