Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Background image for just the left column


Guest

Recommended Posts

I found how to get background images for the main body, for the infoboxes

and for the header/footer. How to you have a background image for JUST

the left column (the ENTIRE column, not just the infoboxes)?

 

 

Any help would be greatly appreciated.

Link to comment
Share on other sites

The way I'd approach it is this. column_left.php is inserted in between a <tr> </tr> pair. So I think I'd do this:

<td><table background=<?php echo '"' . DIR_WS_IMAGES . 'myback.jpg"'?>><tr>
... rest of column_left goes here
</tr></table></td>

Link to comment
Share on other sites

I just tried that and it only put a background image behind the infoboxes. I was a background image behind the entire left column.

 

 

Also, do you know how to adjust the infobox margins?

 

Thankyou

Link to comment
Share on other sites

Also, the background title of the infoboxes (such as information or categories)overlaps the background image

Link to comment
Share on other sites

If you want the background to continue down to the bottom of the screen, no matter how long the page is, then what you need is a body background image with a repeat-y attribute. I'm not sure offhand how to do this and not mess up the header, but perhaps if you gave that table its own background, it would do it. You'd specify this in the stylesheet.css for the body.

 

You will have to change the style for the infoboxes so that they have no background - it's not immediately obvious to me how to do that.

 

Look in includes/classes/boxes.php for the code that displays the boxes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...