I have "t_data" class defined to customize the look and feel for majority of my tables.
Though, in some cases I need to do an additional tables specializations: let's say I want tables for "customers" and "orders" looking differently.
Default way to inherit styles is to describe css-definitions for both classes into the same block, something like this:
table.t_data, table.t_data_order, table.t_data_customer
{
background-color: #080;
}
That way works well till some extend... until I get TOO MANY different definitions.
Right now I have already something like this:
table.t_data thead tr th, table.t_data thead tr td, table.t_data tbody tr th, table.t_data tbody tr td, table.t_data tfoot tr th, table.t_data tfoot tr td,
table.t_group thead tr th, table.t_group thead tr td, table.t_group tbody tr th, table.t_group tbody tr td, table.t_group tfoot tr th, table.t_group tfoot tr td
{
border: #333 1px solid;
}
In order to do customize t_data to look different for t_data_customer and/or t_data_order I will need to TRIPPLE that block... and there is high risk to miss some elements... I also have more than 10 such blocks for different elements (like background, font, etc.)
Is there any css or even non-css solution for things like this?
Thank you very much!
P.S. If you don't have any solution but only ideas, don't be shy to share them as well! Any thoughts are welcome