Can any one tell how to use padding tag with php

iluvbob

Registered Member
Joined
Jul 12, 2008
Messages
81
Reaction score
7
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
 
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>
 
Back
Top