tharada Posted August 12, 2008 Posted August 12, 2008 How can I have different styles for different boxes? I would like to have large fonts for some box headers like 'Bestsellers' and 'What's New' but small ones for others like the 'Manufacturer' dropdown menu. Is there a way of controlling styles to individual boxes? Cheers!
Historian Posted August 12, 2008 Posted August 12, 2008 How can I have different styles for different boxes? I would like to have large fonts for some box headers like 'Bestsellers' and 'What's New' but small ones for others like the 'Manufacturer' dropdown menu. Is there a way of controlling styles to individual boxes? Cheers! Basic CSS! Write a new style in stylesheet.css and change the class in the appropriate file.
tharada Posted August 12, 2008 Author Posted August 12, 2008 Basic CSS!Write a new style in stylesheet.css and change the class in the appropriate file. Hi, Thanks for your reply. Sorry I'm so useless at CSS. :) Could you please help me a little more? Which are the appropriate files that need changing? I know that the relevent box files (manufacturers.php etc) will need changing but which other files? Thanks for taking your time!
burt Posted August 12, 2008 Posted August 12, 2008 http://www.clubosc.com/how-to-make-just-1-...rent-style.html
tharada Posted August 12, 2008 Author Posted August 12, 2008 http://www.clubosc.com/how-to-make-just-1-...rent-style.html Wonderful! Thank you very much for the heads up! Great blog by the way. Very helpful. I will no doubt be a regular visitor.
tharada Posted August 12, 2008 Author Posted August 12, 2008 Does having STS affect this because i can't seem to get it to work. I have changed the manufacturers.php thus: $manufacturer = tep_db_fetch_array($manufacturer_query); ?> <!-- manufacturer_info //--> <tr> <td id="manu"> <?php $info_box_contents = array() and the stylesheet thus: #manu .infoBoxHeading { font-size: 12px; color: #006699; } #manu .infoBoxContents { background: #090909; font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; } but no worky... I've tried turning on the infobox on the STS admin and putting the id on the infobox_manufacturers.php.html but that didn't work either. I've fiddled with various permutations in the stylesheet to no avail. No matter what I do, the main TD.infoBoxHeader and TD.infoBox.Contents seems to win though. I've read somewhere that "! important" can overide stuff but no cigar this time... Help! I'm quickly running out of ideas and going slowly mad!
tharada Posted August 12, 2008 Author Posted August 12, 2008 Aha! Found me a solution! All you have to do is to put the 'id' field in the STS template file the box is in rather than the .php file or the STS infobox template file. Thank you again Gary for your help! Couldn't have done it without you!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.