Currently, I am working with an HTML table that is being generated by Java. My goal is to highlight the text within a table cell without changing the background color of the entire cell.
I should mention that I am aware of the option to achieve this by manipulating the table cells individually. However, as we are in the later stages of development, I would prefer not to spend a significant amount of time on this task.
This is the desired outcome:
However, when attempting to format the cell using the following code:
<td style="width:20%;background-color:yellow;">Last: Thudpucker</style></td>
<td style="width:20%">First: Jimmy</td>
<td style="width:20%">Middle: T</td>
<td style="width:20%">DOB: 12/12/1992</td>
The result is as follows:
Is it possible to achieve the desired effect using only HTML and CSS?