Setting font color in a table

Discussion in 'HTML & Website Design' started by gregd1, Jun 6, 2012.

  1. #1
    Hello,
    I am building a table and the text font is red.
    I am guessing it is coming from my work's standard css form. But I would like to overwrite it on my page.

    I am trying this to force the color change. But it is not working
    I would also like to center the text. which is not working.

    any ideas?
    thanks

    
        <TABLE BORDER="1"    WIDTH="100%"   CELLPADDING="4" CELLSPACING="3" COLOR="#000000" align='center' > 
    
           <TR>
              <TH COLSPAN="5"><BR><H3>Paper Types</H3>
              </TH>
           </TR>
           <TR>
              <TH>ITEM</TH>
              <TH>Ordering</TH>
              <TH>Periodic Counts / Interstoring</TH>
              <TH>WIC</TH>
              <TH>Total</TH>
           </TR>
           <TR ALIGN="CENTER">
              <TD>Fuji 5 inch Glossy</TD>
              <TD>960303</TD>
              <TD>2 rolls</TD>
              <TD>Roll</TD>
              <td align='justify'><input class='inputField' type='text' name='paperTypes5Glossy'></td>
           </TR>
    
    
    Code (markup):
    here is my table

    table.jpg
     
    gregd1, Jun 6, 2012 IP
  2. alamlinks

    alamlinks Well-Known Member

    Messages:
    992
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    140
    #2
    It may be caused due to the resolution of your monitor. You HTML code is correct. There is not any other color except the normal color as you want (font color black).
     
    Last edited by a moderator: Jun 6, 2012
    alamlinks, Jun 6, 2012 IP
  3. dreamzdb

    dreamzdb Member

    Messages:
    41
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #3
    Actually your code may not be correct. It depends on the cascade. Try setting color on the TD's and see if that works. It's possible something is still over riding your colors because it has more specificity.
     
    dreamzdb, Jun 23, 2012 IP