[B]Text color, size and alignment[/B]

Discussion in 'PHP' started by mringuk, Oct 29, 2008.

  1. #1
    I am recalling info from a Mysql database and would like to display different results in different color, size or alignment within the 'echo' statement. Any help please.
     
    mringuk, Oct 29, 2008 IP
  2. keyaa

    keyaa Peon

    Messages:
    137
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just echo some html, css as well ..
    <?php
    echo '<p style="color:#ff0000;">1, this is red</p>';
    echo '<p style="color:#00ff00;">2, this is green</p>';
    echo '<p style="color:#0000ff;">3, this is blue</p>';
    ?>
    PHP:
     
    keyaa, Oct 29, 2008 IP