Style RowGroup Headlines

Style RowGroup Headlines

choggerchogger Posts: 15Questions: 4Answers: 0

Hello Guys,
i try to style the RowGroup Headlines, starting from the second appearance.
The normal styling is made though css

Code:
.datatables tr.group td
{
font-weight:bold;
padding-left: 16px;
}

I then tried to work with :nth but it doesn't seam to work?
Any ideas how i can change the second and following group headers without changing the first one?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin
    Answer ✓

    Do you have a datatables class on your table?

    If you can link to a page showing the issue that would be useful.

    Any ideas how i can change the second and following group headers without changing the first one?

    Assuming the row grouping is shown above the group you could use tr.group:not(:first-child) as part of your CSS selector.

    Allan

  • choggerchogger Posts: 15Questions: 4Answers: 0

    Sorry for the late response..! Thank you, that was the right hint:

    tr.group:not(:first-child) td

    is what i was looking for :)

This discussion has been closed.