Using two different Styles
Using two different Styles
Hallo Datatables Fans ;)
I'm running into a problem I can't understand and solve on my own...
I have a stylesheet included in my website where I have two classes for two different tables...
.datatables td, th
{
padding: 0px;
}
.datatables-padding td, th
{
padding-left: 20px;
}
My problem is (and I think it is a datatables and not a styling thing) that each time I use a class='' to style the table the datatables-padding gets used. How can I change this behaviour?
Thank you in advance
This question has an accepted answers - jump to answer
Answers
Your CSS is incomplete - you really want:
Otherwise your selector is always selecting all
th
elements, regardless of the class name.Allan
oh my god...
Such a terrible mistake, sry for the question :/
Thank you :)