On a webpage, I have a standard table/th/tr/td
setup that presents tabular information. The columns can be rearranged:
product|price|date
price|product|date
date|product|price
... and so forth.
However, the original order remains consistent for each display:
Microsoft|100|01-01-2020
Google|200|02-02-2019
or
100|Microsoft|01-01-2020
200|Google|02-02-2019
I need to format the product/price/date columns in the table (e.g., making "product" bold and "date" italic). Unfortunately, it doesn't look very appealing:
<td style="font-weight: bold">Microsoft</td> ...
Is there a way to achieve this using CSS without directly applying styles/classes to every individual cell when rendering the table/th/tr/td
elements?
Thanks in advance!