I had this in html section and found that I can't seem to override the ".tablegrid TD" even if the new style is after the TD style because it is more specific.
The only way around that would to be put it inline. But there doesn't seem to be a way to do that in the GridView.
I have a table where no matter where the class is, it is getting overwritten.
I have the following in my sheet:
.tablegrid TD {
BORDER-BOTTOM: #404040 1px solid;
TEXT-ALIGN: center;
BORDER-LEFT: #404040 1px solid;
BORDER-TOP: #404040 1px solid;
BORDER-RIGHT: #404040 1px solid;
}
This class is in my table element.
I have a particular column (td) where I want to override the TEXT_ALIGN so it is aligned left. So I created this class:
.gridCell
{
text-align: left;
padding-left: 5pt;
}
No matter where I put it in the sheet before the ".tablegrid TD" or after it, my gridcell value is still overridden by ".tablegrid TD".
When I look at it in the Developer Tools, it shows the gridCell first then the "tablegrid TD" and the text-align in the gridCell is struck out.
How do I get around that?
Thanks
Tom
The only way around that would to be put it inline. But there doesn't seem to be a way to do that in the GridView.
I have a table where no matter where the class is, it is getting overwritten.
I have the following in my sheet:
.tablegrid TD {
BORDER-BOTTOM: #404040 1px solid;
TEXT-ALIGN: center;
BORDER-LEFT: #404040 1px solid;
BORDER-TOP: #404040 1px solid;
BORDER-RIGHT: #404040 1px solid;
}
This class is in my table element.
I have a particular column (td) where I want to override the TEXT_ALIGN so it is aligned left. So I created this class:
.gridCell
{
text-align: left;
padding-left: 5pt;
}
No matter where I put it in the sheet before the ".tablegrid TD" or after it, my gridcell value is still overridden by ".tablegrid TD".
When I look at it in the Developer Tools, it shows the gridCell first then the "tablegrid TD" and the text-align in the gridCell is struck out.
How do I get around that?
Thanks
Tom