1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can any one tell how to use padding tag with php

Discussion in 'General Programming Chat' started by iluvbob, Aug 21, 2008.

  1. iluvbob

    iluvbob Registered Member

    Joined:
    Jul 12, 2008
    Messages:
    81
    Likes Received:
    5
    Occupation:
    Web Entrepreneur and Digital marketer
    Location:
    Malaysia
    Hi,
    Iam another newbie to php I just want to add padding-top to little code

    Here is a code.
    forum php tags are not working in so posting code normally

    <tr>
    <td align="center" bgcolor="<?=SUBSCRIBE_TEXT_BGCOLOR?>"><font size="1" face=" verdana, helvetica, arial" color="<?=SUBSCRIBE_TEXT_COLOR?>"><b><b><?=TEXT_NEWSLETTER?></b></font>
    </td>


    I just wanted to add padding function to it I tried 2 or 3 techniques from a website but didnt work..
    hopefully u can help me out with this..
    thx
     
  2. RandH

    RandH Newbie

    Joined:
    May 30, 2008
    Messages:
    12
    Likes Received:
    2
    Not sure what you mean exactly, but I'm assuming that you want to add padding to the top of the newsletter text.

    In that case it wouldn't have anything to do with php, more of a css issue.

    The easiest way is to just add inline css to the <td> element. Example:
    HTML:
    <td align="center" bgcolor="<?=SUBSCRIBE_TEXT_BGCOLOR?>" style="padding-top: 20px"><font size="1" face=" verdana, helvetica, arial" color="<?=SUBSCRIBE_TEXT_COLOR?>"><b><b><?=TEXT_NE WSLETTER?></b></font>
    </td>