Show and hide details about a particular record

Show and hide details about a particular record

CraigCraig Posts: 6Questions: 0Answers: 0
edited November 2010 in General
Hi

On the column used for the show and hide extra details about a particaulr row, how can you add specific styles to that column only. I need to reduce the padding on the left and right in order for it to fit in my page. I can't reduce the other columns as they can't go any smaller.

What I need to know is where you put a new class to change the show hide column?

Thanks in advance

Replies

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Hi Craig,

    sClass ( http://datatables.net/usage/columns#sClass ) is probably the easiest option. Another one might be to use CSS selectors like :first-child, if this is appropriate.

    Allan
  • CraigCraig Posts: 6Questions: 0Answers: 0
    Thanks for your response. I'll give it a try.
  • CraigCraig Posts: 6Questions: 0Answers: 0
    sClass seems to have worked.

    Cheers
This discussion has been closed.