Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

nav bar alignment


khaaliq

Recommended Posts

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...