miggle Posted December 22, 2005 Share Posted December 22, 2005 Okay so I created a new box class, and when i go to test it out It works fine. EXEPT. The Header still shows up with the infoBox header style class. It even says in the HTML when I view source. But the contents in the box display with the plainBox style class defined in the stylesheet.css . Which is what I want. Can someone tell me how I can get the header to work with the plainBox class (which is my defined one). If It helps. I used the catigories.php edit my own. Here's my site. www.propagatestudios.com/shop where it says browse by catigory. its supposed to be a white background. I know the images are still there (ie the corner_right.gif) but I still just want to get the background working for now. Thx. Link to comment Share on other sites More sharing options...
buzuc Posted December 22, 2005 Share Posted December 22, 2005 Put your box class here instead, it will be more helpfull ! MS2 2.2 fr + Manufacturer copy (5 manufacturers - modified to make it works) + More pics 6 + FCK Editor + zones shipping (modified without weight) + My contribution : Shopping Cart Management for Unique Products I apologize in advance for my poor English I'm French ! Link to comment Share on other sites More sharing options...
miggle Posted December 22, 2005 Author Share Posted December 22, 2005 Put your box class here instead, it will be more helpfull ! ---includes/classes/boxes.php -------- class plainBox extends tableBox { function plainBox($contents) { $this->table_data_parameters = 'class="plainBox"'; $this->tableBox($contents, true); } } ----includes/boxes/catigories.php----- <!-- categories //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); ..... ..... ..... ..... new plainBox($info_box_contents); ?> </td> </tr> <!-- categories_eof //--> -----stylesheet.css----------- .plainBox { background: #ffffff; } .plainBoxContents { background: #FFFFFF; font-family: Verdana, Arial, sans-serif; font-size: 10px; } .plainBoxNotice { background: #FF8E90; } .plainBoxNoticeContents { background: #FFE6E6; font-family: Verdana, Arial, sans-serif; font-size: 10px; } TD.plainBoxHeading { font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; background: #ffffff; color: #ffffff; } TD.plainBox, SPAN.infoBox { font-family: Verdana, Arial, sans-serif; font-size: 10px; } ----- I dont see why it doesnt work all the code seems correct. Link to comment Share on other sites More sharing options...
miggle Posted December 22, 2005 Author Share Posted December 22, 2005 Ouh alright I figured it out. I made a new class for plainBoxHeading. infoBoxHeading doesnt pass the class parameters. it just states that it should use the infobox class in stylesheet.css.. WHEW. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.