Looking for suggestions on styling two tags with the same class differently?
I have 2 tables:
<table id="tab1" class=".ui-jqgrid .ui-jqgrid-hbox">
<table id="tab2" class=".ui-jqgrid .ui-jqgrid-hbox">
The first table is a jqgrid on the page, and the second table tag contains a jqgrid within a pop-up. I want to style the top rows (labels/columns) of both jqgrids differently. However, when I apply the following style:
.ui-jqgrid .ui-jqgrid-htable th div {
height: auto;
overflow: hidden;
padding-right: 4px;
padding-top: 2px;
position: relative;
vertical-align: text-top;
white-space: normal !important;
}
It affects both tables. I need it to affect only the first table and apply a similar style to the second table but with additional properties. Can anyone help me achieve this? Thank you!