Setting table cell color from database
I think about it. I have colors stored in a database table and I want to set the background of specific cells in the table for those colors. In other words:
<table>
<tr>
<td ???set color here???>
...content...
</td>
<td ???next color here???>
...next content...
</td>
</tr>
</table>
Initially, I had panels surrounding each piece of content, and I set their background color in code, which worked great until I had different size panels that discarded the layout. What's the simplest way to pass color values from the database to an item <td>
? Please note that the colors are user configurable, so I cannot foresee them in the CSS file.
0
source to share
4 answers