Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing *some* infobox background colors


milauskas

Recommended Posts

Posted

Hi,

 

I'm installing a site here: http://www.discount-birds.com/index_temp.php

 

The client wants the background color of the infoboxes in the left and right columns changed to a light brown.

 

It looks like .infoBoxContents is what applies to this in the stylesheet. However... changing infoBoxContents only changes the background color of the contents (e.g., the category names, the pulldown menus, etc.). The rest of the infoBox remains white. It looks like there's some padding applied somewhere. I want the background to span the entire width of these boxes .

 

ALso, the products you see in the center are also contained in infoBoxes. SO, making a change to infoBoxContents causes these backgrounds to change color and I don't want that.

 

Is there any solution to either of these problems?

Posted

Okay, solved it and here's what I needed to do:

 

This is a template that I'm using but it might apply to any installation. The info boxes on the left and right columns are controlled by column_left.php and column_right.php in the includes directory.

 

The elements like the manufacturers pulldown menu, etc., which appear inside these boxes are inside of table elements in the column_right and column_left files. Since there wasn't really anything that applied to the entire width of the boxes in the regular stylesheet, I had to add my own styles to these files.

 

I simply added a style to the <td> tags which make up the info boxes. The style I added was "background-color" and chose the color I needed.

Archived

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

×
×
  • Create New...