html help...?

Discussion in 'HTML & Website Design' started by tptnyc, Aug 22, 2007.

  1. #1
    Trying to get white color font but not happening. Where is the coding problem?

    <tr>
    <td height="22" align="right" bgcolor="#F6AD8A"><font color="#FFFFFF" size="1"face="Verdana, Arial, Helvetica, sans-serif"><a href="gift_box.php">Free Gift Box</a>&nbsp;</font></td>
    </tr>
     
    tptnyc, Aug 22, 2007 IP
  2. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #2
    Maybe that missing space?
     
    twistedspikes, Aug 22, 2007 IP
  3. getwiththeprogram

    getwiththeprogram Peon

    Messages:
    120
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The text is white however because you have made it a link this is overtaken by the active link code (built-in to browsers) so this will default it to blue.

    The best way to set fonts, color is to uss CSS for the styling, then you can set default colours and things.
     
    getwiththeprogram, Aug 22, 2007 IP
  4. bogs

    bogs Active Member

    Messages:
    2,142
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #4
    try this one..

    <BODY bgcolor="#000000" text="#FFFFFF" link="#FFFFFF">
     
    bogs, Aug 22, 2007 IP
  5. fairyj

    fairyj Peon

    Messages:
    41
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yep you need to use a css sheet as that will then disable the default link colour.

    Here is mine as an example hope it helps somewhat :)

    body {
    background-color: transparent; font-family: comic sans, sans-serif; font-size: 9.5pt; color: #0F5B8B
    ;
    scrollbar-3d-light-color:#558AAF; scrollbar-arrow-color:#558AAF;
    scrollbar-base-color:#558AAF; scrollbar-dark-shadow-color:#3E6882;
    scrollbar-face-color:#537393; scrollbar-highlight-color:#558AAF;
    scrollbar-track-color:#537393; scrollbar-shadow-color:#3E6882;
    }

    <!--
    a:link {
    color: 0F5B8B;
    text-decoration: none;
    }
    a:visited {
    color: 0F5B8B;
    text-decoration: none;


    a:hover {
    color: 8BB7ED;
    text-decoration: none;
    }
     
    fairyj, Aug 22, 2007 IP
  6. tptnyc

    tptnyc Peon

    Messages:
    764
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Any suggestions without the css?
     
    tptnyc, Aug 22, 2007 IP
  7. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #7
    Think this works without css.

    <tr>
    <td height="22" align="right" bgcolor="#F6AD8A"><a href="gift_box.php"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Free Gift Box</font></a>&nbsp;</td>
    </tr>
     
    twistedspikes, Aug 22, 2007 IP
  8. Grumps

    Grumps Peon

    Messages:
    592
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #8
    put all your <font> elements within the <a> tag and it will work well. Link property differs from normal text. <font> property will not affect them.
     
    Grumps, Aug 22, 2007 IP
  9. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Why are you using obsolete HTML code when you could be using something that's not only a million times better but is also that much easier to maintain?
     
    Dan Schulz, Aug 22, 2007 IP
  10. tptnyc

    tptnyc Peon

    Messages:
    764
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks twistedspikes .
    Yes, it worked but font size came size 3 instead of size 1. Don't understand why?
     
    tptnyc, Aug 22, 2007 IP
  11. nordsea

    nordsea Peon

    Messages:
    54
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    check your css if any. that might be the culprit
     
    nordsea, Aug 31, 2007 IP