Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Overriding CSS sheet?


Aragon127

Recommended Posts

I'm using the featured products mod in place of the new items info box(in the center of the page, not the columns). My infobox's are set to use a green background color via the CSS sheet. However, the featured products also get a green background because of this. I want the background to stay the same on the infobox's in the columns, but I want the featured products one to be white. I thought placing the html directly in the featured_products.php would override the CSS sheet, but it doesn't. Here's what I did in featured_products.php:

 

<body BGCOLOR="#ffffff" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

 

but, background still shows as green. Is there anyway I can override this or I am stuck with the color?

Link to comment
Share on other sites

1) in the CSS sheet create a new class ".infoBox2" with your own backgrond color

 

2) i'm not sure where this is, but find the .infoBox in reguards to the features and change it to .infoBox2

 

I haven't had a whole lot of time to work through all the code in the s/w, so this should work in theory.

 

If I get some time tonight I'll see if I can search for it, and let you know.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...