Only bold text in table

Discussion in 'HTML & Website Design' started by immortality, Jan 29, 2007.

  1. #1
    Ive got a table on my website and for some reason the text will only show up bold even when there is nothing telling it to go bold. Here is the code:

    <table valign="top" width="550" CELLSPACING=0 CELLPADDING=0 BORDER=0 align="center" background="ojback.png"> <tr> <th> 
    
    <img src="oj.png" width="550" height="1">
    </th>
    
    
    <tr><th background="ojback.png"><TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"  background="back.png" height="1" width="550" valign="top" align="left"> 
    
     <th valign="top" width="5" align="center"> <font size="2"> 
    
    hmm
    <p></font></th>  
    
     </tr>
     </table> 
    </th> 
    </tr>  
    <tr> 
    <th CELLSPACING="0" CELLPADDING="0" height="1" background="oj.png" align="top">  
    </th> </tr>
    </table>
    Code (markup):

     
    immortality, Jan 29, 2007 IP
  2. oliverbowen

    oliverbowen Well-Known Member

    Messages:
    326
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Are you sure it's not your browser that's set that way.

    If not, take out the font size=2 and see what that does, also
    put the hmm in a <p> </p> code block and see if that works.

    I'm testing this out on my own to see if i can get something working for you. Will let you know.

    Oliver
     
    oliverbowen, Jan 29, 2007 IP
    immortality likes this.
  3. gastongr

    gastongr Well-Known Member

    Messages:
    421
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    108
    #3
    The <th> tag defines a table header cell.
    The text within the th element usually is in bold.
    Use <td> instead
     
    gastongr, Jan 29, 2007 IP
    immortality likes this.
  4. immortality

    immortality Peon

    Messages:
    1,512
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It shouldnt be my browser... I gave my friend the code a while back and he used it exactly as I gave it to him and his text wasnt bold unless he made it bold. I tried taking out the font size and I tried adding <p></p> around the text but it did nothing.
     
    immortality, Jan 29, 2007 IP
  5. immortality

    immortality Peon

    Messages:
    1,512
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That worked, thanks!
     
    immortality, Jan 29, 2007 IP