Re: Help with adding an image to a table row
| From: | Arthur Pelkey | Date: | Wed, 17 Mar 2004 17:30:54 +0000 |
| Subject: | Re: Help with adding an image to a table row | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180711@lists.php.net to get a copy of this message | ||
background=""
Mark wrote:
I have the following snippet of code that I cannot seem to find a way to add an image to a <TR>. The line in question is the first one under the else statement: print "<TR BGCOLOR=\"#381499\">"; This line, I would like to show a image called "backgrnd.png" instead of a backgound color. Any help would be much appreciated Thanks Mark <? if ($page == "printerFriendly"): print "<TR style=\"background-color: #FFFFFF;\">"; print "<TD style=\"padding: 5px; padding-right: 0px; padding-bottom: 10px; padding-left: 5px; width: 70px;\">"; print "<a href=\"index.php\"><IMG src=\"images/logo.gif\" ALT=\">Staff Database\" border=\"0\"></a>"; print "</td>"; print "<TD><DIV CLASS=\"logo_large\" style=\"color: ##FFFFFF;\"><B>Staff Database</B></DIV><DIV CLASS=\"logo_small\" style=\"color: #000;\">Staff tracking made easier</div></TD>"; print "</TR>"; else: print "<TR BGCOLOR=\"#381499\">"; print "<TD style=\"padding: 10px; width: 170px;\">"; print "<a href=\"index.php\"><IMG src=\"images/logo.gif\" border=\"0\"></a>"; print "</td>"; print "<TD><DIV CLASS=\"logo_large\"><B>>Staff Database</B></DIV><DIV CLASS=\"logo_small\">Staff tracking made easier</div></TD>"; print "</TR>"; ?>