PHP color/font size in script

Discussion in 'Programming' started by jrp1, Jan 26, 2009.

  1. #1
    I have a PHP script that echos the following code, but I can't figure out a way to change the font:

      echo "<br><br><p><b>Thank you, $name</b></p><p>we've received your request and will get back to you as soon as possible.</p>"; 
    Code (markup):
    I need it to be #FFFFFF, size 12, and Tahoma. Anybody have an idea of how I can do this? The code acts differently when it's echoed, it's quite frustrating.
     
    jrp1, Jan 26, 2009 IP
  2. plog

    plog Peon

    Messages:
    298
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #2
    use CSS. The quickest way would be to replace your <p> tags with this:

    <p style=\"font-size: 12px Tahoma; color: #FFFFFF;\">
     
    plog, Jan 26, 2009 IP
  3. jrp1

    jrp1 Active Member

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Worked great, thanks.
     
    jrp1, Jan 26, 2009 IP