julia Posted January 10, 2005 Posted January 10, 2005 I have uploaded a new header image. Now I want to have a background image for the rest of the header at the top of my site. (that is behind the view Cart button etc). I uploaded the image to the images file and added the code background = "blueback.gif" to the table, but the background is still white. Do I need to change a stylesheet somewhere? Thanks Julie
Guest Posted January 10, 2005 Posted January 10, 2005 Use bgcolor="#FFFFFF" attribute inside <table> tag. <tr> and <td> also support bgcolor attribute. If you are not sure where to put it, just post your code here. :thumbsup:
julia Posted January 10, 2005 Author Posted January 10, 2005 <table border="0" width="100%" cellspacing="0" cellpadding="0" background="blueback.gif" > <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'noteworthyheader.gif', 'NoteworthyInk') . '</a>'; ?></td> <td align="right" valign="bottom" background="blueback.gif"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> </tr> </table> Here is my code. I added the background image to the table and the table cell, just to be on the safe side, but its not showing up in either place. I uploaded the blueback.gif image to the catalog/images folder. The reason I wanted to add an image as a background instead of a color code, is that often even it is the same hexadecimal code, as the gif, the colors are out just stightly and the header isn't seamless. Thanks Julie
julia Posted January 10, 2005 Author Posted January 10, 2005 Okay..I'm a newbie. I just realized I can't just list the filename.gif without referencing where it is. I'll try to do that. A little unfamiliar (okay alot) with this code, but will try. If it doesn't work, I'll go the the hexadecimal code. Thanks Julie
Guest Posted January 10, 2005 Posted January 10, 2005 The problem is that you can't quite exactly have both background and background colour. Well, not directly anyways. Are you using "transparent gif"?
Guest Posted January 10, 2005 Posted January 10, 2005 Actually, can you give us a link to your site (if on line). To let us have a better idea of what you want to achieve.
julia Posted January 10, 2005 Author Posted January 10, 2005 I tried using the color code and it is still showing white. Am I putting it in the wrong place? <table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#336699" > <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'noteworthyheader.gif', 'NoteworthyInk') . '</a>'; ?></td> <td align="right" valign="bottom" background="blueback.gif"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> </tr> </table> Here is the site link The link is http://www.noteworthyinkonline.com/shop/catalog I would prefer to use a background image instead. If I do, how do I change the code in the table tag? Thanks again. You can tell I'm just getting started.
julia Posted January 10, 2005 Author Posted January 10, 2005 Success sort of. When i put bgcolor in the <td> tag as opposed to the table tag, it shows up. Makes sense..god..what am I thinking. Okay..now to try with an image instead. Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.