dchockenberry Posted December 17, 2003 Share Posted December 17, 2003 How would I go about making my background color in products_descriptions match that of the infoboxes? I figured it would be in stylesheet.css but I couldn't figure out for the life of me which line makes this call. Any help is appreciated. Link to comment Share on other sites More sharing options...
TomThumb Posted December 17, 2003 Share Posted December 17, 2003 In product_info.php Look for this <tr> <td class="main"> <?php if (tep_not_null($product_info['products_image'])) { ?> change <tr> to <tr class="infoBoxContents"> while (!succeed) {try()}; GMT -6:00 Link to comment Share on other sites More sharing options...
dchockenberry Posted December 18, 2003 Author Share Posted December 18, 2003 ok what if I wanted to make it a different color altogether? could I create a define function for it in the styelsheet? if so, how would I do this? Link to comment Share on other sites More sharing options...
gaia Posted December 18, 2003 Share Posted December 18, 2003 Yes. Take a look at stylesheet.css and check out the .infoBoxContents class. You could go ahead and make a new copy of it, then change it's name (for instance .descriptionBoxContents), information (colors, text style) and make the change that was previously mentioned, but use your new style instead: <tr class="descriptionBoxContents"> Link to comment Share on other sites More sharing options...
dchockenberry Posted December 18, 2003 Author Share Posted December 18, 2003 so I could name the class anything I want as long as it's the same reference in the stylesheet and in the line <tr class? or does it have to be called descriptionBoxContents? Link to comment Share on other sites More sharing options...
dchockenberry Posted December 18, 2003 Author Share Posted December 18, 2003 also - I see <tr> on many different lines in the product_info file..which one am I to change? Link to comment Share on other sites More sharing options...
gaia Posted December 18, 2003 Share Posted December 18, 2003 Yes, you can name the style classes anything you want. I have modified my product_info.php file, and don't have a standard install handy, so I can't tell you exactly where to change the <tr>, but I figure it's around line 90. A decent way to hunt for the right place is to use your browser to view the source of a page you want to change. Find the place in the html source that needs changing (in this case, you would look for the product description) and take note of the html that surrounds that area. Then search in your php files (in your case, you would just need to search in product_info.php) for that html and go from there. Remember to backup your files before editing them. It'll save you some headaches and allow you to modify the code w/out fear of ruining it. Link to comment Share on other sites More sharing options...
TomThumb Posted December 19, 2003 Share Posted December 19, 2003 You can look here for adding a new class http://wiki.oscommerce.com/docsCatTipClass And lots of good information about stylesheets here http://www.w3.org/Style/CSS/ while (!succeed) {try()}; GMT -6:00 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.