Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Info boxes, each with a diifernt color


sleepypinguin

Recommended Posts

In catalog/includes/boxes you'll find the files that make the boxes.

In the file you want to give a different face, change the

line "new infoBoxHeading($info_box_contents, false, false);"into something

like "new MY_OWN_infoBoxHeading($info_box_contents, false, false);"

 

Then go to stylesheet.css and add what's below here:

 

TD.MY_OWN_infoBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background: #bbc3d3;

color: #ffffff;

}

 

By giving the classes a unique name and adding their difinitions in the style sheet; you can give each box it's own color and style.

Link to comment
Share on other sites

Thanks for the reply webpsico. I can understand what you are trying to show me, that the "boxes" php file referance the sheetstyle on that line, but when do a change to the infoBoxHeading line, and reload my web browser, the boxes fail on me, (They are blank).

here is my code:

 

categories.php

new MYNEW_infoBoxHeading($info_box_contents, true, false);

--------------------------------

sheetstyle.css

TD.MYNEW_infoBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background: #F99F02;

color: #ffffff;

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...