plconline Posted December 30, 2004 Posted December 30, 2004 Hi, I am trying to repeat the top image on the header.php page. The file was originally called oscommerce.gif but i have replaced it with our new one called topspacer.jpg. With this i want to repeat the image accross the screen horizontality, i know how to do it in html but am unsure as how to do it in PHP. Could some one please help. Here is the code: echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'topspacer.jpg', 'PLC' ) . '</a>';
♥Vger Posted December 30, 2004 Posted December 30, 2004 This was set up especially to work with a javascript drop down menu working on top of a non-repeated background image - first a new class in stylesheet.css .bgtable, .bgtable table { background-image:url('images/topspacer.jpg'); background-color: whatever; background-repeat: no-repeat; } You may only need .bgtable in the first line for what you want, and just change 'no-repeat' to 'repeat'. Then within the first <table> definition in header.php insert, class="bgtable" Vger p.s. But this won't render it as a clickable 'return to homepage' link
plconline Posted December 31, 2004 Author Posted December 31, 2004 Thank you very much. Very usefull and works 100% :rolleyes:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.