Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Insert image in to info boxes


gareth123456

Recommended Posts

Hello

 

I want to insert an image in to my info boxes (the same image in all boxes) and position it at the top of the box (in the body of the info box, not the header). Any pointers as to what I should be doing?

 

Thanks

 

Gareth

Link to comment
Share on other sites

Gareth, I haven't done this but I'm pretty sure what you need to do is edit the code for each infobox in includes/boxes. You will need to add a table to align the image properly.

 

HTH,

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thanks for that. I have tried inserting something like

 

 

<tr>

<td>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr height="13">

<td align="center" valign="top" width="95%" height="7" background="images/testbshadow.gif"></td>

</tr>

 

 

But I can only get the image to show up between the header and the contents of the info box with a space at the top and the bottom (may be cell padding is causing this?).

Link to comment
Share on other sites

Thanks for that.  I have tried inserting something like

 

<tr>

<td>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr height="13">

<td align="center" valign="top" width="95%" height="7" background="images/testbshadow.gif"></td>

</tr>

 

But I can only get the image to show up between the header and the contents of the info box with a space at the top and the bottom (may be cell padding is causing this?).

I've done something similar to this with other parts of OSC and what I had to do was place the exisiting code in one cell and the part I was adding in the next cell.

So something like what you have but change to this (not tested):

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr height="13">

<td> PUT EXISTING CODE FOR INFOBOX HERE </td>

<td align="center" valign="top" width="95%" height="7" background="images/testbshadow.gif"></td>

</tr>

 

That will allow you to align it to the left or right as you want.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Folks does anyone read here? Wiki Doc's Read them, eat them, live them The Hole Grail of Osc

I agree that people don't use those docs as much as they should (I'm probably guilty of that myself at times). However, the reference you gave doesn't address the op's question and I didn't find a solution for his problem in there (just a quick search though).

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

there are a few contributions that do what you want, I think. FWIW, I use one called 'table headers' which works fine for me. Not sure where it is on contributions, but have a look...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...