richard978 Posted February 15, 2004 Posted February 15, 2004 Very new to php trying to add a table background: <table cellpadding="0" cellspacing="0" width="100%" background="<?php echo $DIR_WS_IMAGES . 'default/strapback.gif' ?>"> Not really working for me...can i do this
ozcsys Posted February 16, 2004 Posted February 16, 2004 Very new to php trying to add a table background: <table cellpadding="0" cellspacing="0" width="100%" background="<?php echo $DIR_WS_IMAGES . 'default/strapback.gif' ?>"> Not really working for me...can i do this I would think it would be better (easier?) to do it using the stylesheet as that is setup for that kind of activity already. Also I am new to the whole php thing myself but if you look at how the images are called in other instances in osC it seems that the syntax is different from what you have, it usually looks like this <?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif'); ?> I do not know if it would be different because you want to use it as a background or not but off the top of my head I cannot think why it would be. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
Guest Posted February 16, 2004 Posted February 16, 2004 You do it in the stylesheet... Example: TR.header { background-image: url(images/my_background.gif); } (Note: do not substitute an actual URL where it states "url"...leave it as "url".) HTH
Recommended Posts
Archived
This topic is now archived and is closed to further replies.