I am using datatables and using below css to hide the header of the table.
table.dataTable thead {
display: none;
}
Now what is happening is I have two tables with id as userList1
& userList2
.
What I want to do is apply this css for only table with id as userList1
.
Any idea how to get this done?
I tried
#userList1.table.dataTable thead {
display: none;
}
#userList1 > table.dataTable thead {
display: none;
}
but none is working.
I am not sure whether above is right or wrong, but I tried. I am newbie for CSS.
HTML Code is
Table 1
<table id="userList" class="responsive dataTable" dir="LTR" style="width: 100%;border: 0px;" aria-describedby="userList_info">
Table 2
<table id="userList:2:userList2" class="responsive appointments" dir="LTR"></table>
<table id="userList:1:userList2" class="responsive appointments" dir="LTR"></table>
<table id="userList:0:userList2" class="responsive appointments" dir="LTR"></table>
Note : I have two table..
Table 1 have inner tables as table 2...
So table I have is
<table id="userList" class="responsive dataTable" dir="LTR" style="width: 100%;border: 0px;" aria-describedby="userList_info">
<table id="userList:2:userList2" class="responsive appointments" dir="LTR"></table>
<table id="userList:1:userList2" class="responsive appointments" dir="LTR"></table>
<table id="userList:0:userList2" class="responsive appointments" dir="LTR"></table>
</table>
Note I am using JSF language and inner table ids are created by JSF...