I'm overthinking this. I have colors stored in a database table, and I want to set the background of specific cells in a table to those colors. In other words:
<table>
<tr>
<td ???set color here???>
...content...
</td>
<td ???next color here???>
...next content...
</td>
</tr>
</table>
Originally I had Panels surrounding each piece of content and I set their background color in the code-behind, which worked fine until I had varying size panels, which threw off the layout. What's the easiest way to feed the color values from the database to the <td>
element? Note that the colors are user-configurable, so I can't have them pre-defined in a CSS file.