tags:

views:

40

answers:

2

i would like to use the font color here. but seems don't know where to put the code for :

 <html>
 <tr>
 <td style="padding-left: 5px;"> 11.15 - 12.00 </td>
 <td style="padding-left: 5px; padding-bottom:3px;"> <b> TEST </b><br/></td>
 </tr>
 </html>
+5  A: 

To set the font colour, just set the color attribute in the style:

<table>
    <tr>
        <td style="padding-left: 5px; 
                   padding-bottom:3px; 
                   color:#FF0000; 
                   font-weight:bold">TEST</td>
    </tr>
</table>

This will render the word TEST in red.

Matt Ellen
it didn't work:-(
tintincute
I formatted the code that way to make it clear what I was doing. Normally I put it all on one line.
Matt Ellen
@tintincute: It works for me. What browser are you testing in?
Matt Ellen
using mozilla 3.6.10 it didn't work
tintincute
he must have misspeled something, or he's editing something that has already a CSS somewhere.
naugtur
it works now, i was putting a color which doesn't exist that's why... ;-) thanks
tintincute
You're welcome :)
Matt Ellen
+3  A: 
 <html>
 <tr>
 <td style="padding-left: 5px; color: blue;"> 11.15 - 12.00 </td>
 <td style="padding-left: 5px; padding-bottom:3px; color: green;"> <b> TEST </b><br/></td>
 </tr>
 </html>
JoshD