sleepypinguin Posted March 18, 2004 Share Posted March 18, 2004 Im trying to figure out how the let each Infobox have its own color instead of the same color for everybox. Having searched the forum ,I didnt see any related topics, so if I missed, please inform. thanks. Link to comment Share on other sites More sharing options...
webpsico Posted March 18, 2004 Share Posted March 18, 2004 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 More sharing options...
sleepypinguin Posted March 18, 2004 Author Share Posted March 18, 2004 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 More sharing options...
Guest Posted March 19, 2004 Share Posted March 19, 2004 There is a contrib for this:) http://www.oscommerce.com/community/contributions,1261 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.