Onstar Posted October 22, 2005 Share Posted October 22, 2005 Hi, What is wrong with the code below? I need to add links to my oscommerce.gif logo. The links are part of the oscommerce.gif. So, I sliced the images as follows: <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle" ><?php echo /*'<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' .*/ tep_image(DIR_WS_IMAGES . 'oscommerce.gif', '') . '</a>'; ?></td> </tr> <td valign="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerceshoppingbag.gif', '') . '</a>'; ?></td> <td valign="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerceprivacy.gif', '') . '</a>'; ?></td> <td valign="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommercecontactus.gif', '') . '</a>'; ?></td> </tr> <td><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommercebottom.gif', '') . '</a>'; ?></td> </tr> </table> I need to have oscommerceshoppingbag.gif + oscommerceprivacy.gif+oscommercecontactus.gif all on the same line as shown below. ________________________________________________________________________________ ____ | | oscommerce.gif |_______________________________________________________________________________ _____ | | | | oscommerceshoppingbag.gif | oscommerceprivacy.gif |Oscommercecontactus.gif |______________________________ |________________________________ |____________________ | | | Oscommercebottom.gif |_______________________________________________________________________________ _____ The problem is that after I add oscommerceshoppingbag.gif, and the rest of the ...privacy.gif and ...contactus.gif, oscommerceprivacy.gif and oscommercecontactus.gif are pushed away from the page completely. The three images suppose to add up to like 758pixels. Can someone please help it out here please. Thank you for helping. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.