I have limited experience with CSS, but I am currently using it for a project.
I encountered a situation where two CSS classes share some common properties:
.KPIDashboardContainerInertiaMatrixCell_data
{
display: table-cell;
font-size: 18px;
padding-top: 30px;
font-weight: bold;
text-align: left;
-webkit-column-width: 120px;
-moz-column-width: 120px;
column-width: 120px;
}
.data_right_column
{
display: table-cell;
font-size: 18px;
padding-top: 30px;
font-weight: bold;
text-align: left;
-webkit-column-width: 80px;
-moz-column-width: 80px;
column-width: 80px;
}
I attempted to simplify it like this:
.KPIDashboardContainerInertiaMatrixCell_data.data_right_column
{
-webkit-column-width: 80px;
-moz-column-width: 80px;
column-width: 80px;
}
However, when specifying the class names in HTML, I used:
KPIDashboardContainerInertiaMatrixCell_data data_right_column
It is not functioning as expected. Can someone point out my mistake? Is there another approach to achieve the same result?