In my ASP.net project, I have a HTML table displaying data.
<td>
<div align="left" >
<%= %TRIM(DLDPFS + ' ' + Status) %>
</div>
</td>
I am looking for a way to change the background color of the cell based on the value in the "Status" column. For example, if status is 'low', then the cell should be red. If it's 'high', make it green, and so on.
I'm aware that CSS doesn't offer much flexibility with conditions, so I'm seeking suggestions on how to achieve this dynamic styling effect. Any ideas?