I would like to vizualize different class variables in the same table in different colors. How to describe this in stylesheet?
For example, the stylesheet which i use now colors both classes in red. I want that day 30 would be blue and day 1 would be red.
For example, the stylesheet which i use now colors both classes in red. I want that day 30 would be blue and day 1 would be red.
Code:
<style> table,th,td { border:1px solid black; } table .mainmonth { color: #000080; } table .nextmonth { color: #FF0000; } .error { color: red; } </style>
Code:
<table> <tr> <td height=17 align="center" > <span class="date" class="mainmonth" > <div class="day">30</div> <div class="price"><input type="text" name="ad2014-12-29price" size="2" value="" ></div> <div class="status"><input type="checkbox" name="ad2014-12-29status" ></div> </span> </td> </tr> <tr> <td height=17 align="center" > <span class="date" class="nextmonth" > <div class="day">1</div> <div class="price"><input type="text" name="ad2014-12-29price" size="2" value="" ></div> <div class="status"><input type="checkbox" name="ad2014-12-29status" ></div> </span> </td> </tr> </table>
Comment