khaaliq Posted December 25, 2002 Share Posted December 25, 2002 I have installed osc on winxp. I made a navigation menu that I am trying to get to align in the center of default page and I am not able to get it. I put the code in the header.php page. Can someone tell me if this is the right code? <table border="0" width="100%" cellspacing="0" cellpadding="1"> <td valign="center"><script menumaker src="images/banner.js"></script></td> </tr> </table> Link to comment Share on other sites More sharing options...
jficarra Posted December 25, 2002 Share Posted December 25, 2002 You're missing the <tr> tag between the <table> and <td> tag. -Jim Link to comment Share on other sites More sharing options...
khaaliq Posted December 25, 2002 Author Share Posted December 25, 2002 Thanks! :o Link to comment Share on other sites More sharing options...
khaaliq Posted December 25, 2002 Author Share Posted December 25, 2002 Hey Jim, One more thing. Can you tell me what code I would use to stretch a gif image accross the top of the page where the banner is located? (to fill the whole table) This is how the code looks now. Thanks. <table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="ffffff"> <tr class="header"> <td valign="right"><?php echo tep_image(DIR_WS_IMAGES . 'banner.gif', 'The Root to Life'); ?></td> </td> </tr> </table> Link to comment Share on other sites More sharing options...
dreamscape Posted December 25, 2002 Share Posted December 25, 2002 add a background="image.gif" to the table like this: <table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="ffffff" background="image.gif"> <tr class="header"> <td valign="right"><?php echo tep_image(DIR_WS_IMAGES . 'banner.gif', 'The Root to Life'); ?></td> </td> </tr> </table> The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke Link to comment Share on other sites More sharing options...
khaaliq Posted December 25, 2002 Author Share Posted December 25, 2002 Thanks but the image does not cover the whole cell :cry: I was considering making the imge larger but my moniter is 21" and I don't want to make the page look distorted if a customer has a smaller screen. Link to comment Share on other sites More sharing options...
dreamscape Posted December 25, 2002 Share Posted December 25, 2002 post a screenshot or link so we can see what you mean... because if you set an image as the background of a table, it repeats itself so that it fills the table... The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke Link to comment Share on other sites More sharing options...
khaaliq Posted December 25, 2002 Author Share Posted December 25, 2002 I have it on my computer, how do I attach a snapshot in this forum? Link to comment Share on other sites More sharing options...
khaaliq Posted December 25, 2002 Author Share Posted December 25, 2002 ok, thanks for your patience :oops: I uploaded a screenshot here; http://www.greatsoap.com/images/screen.gif Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.