This is a discussion on Background colour in columns only within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, Is there a way to change the background colour in the right or left colmns only?. Im trying to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, Is there a way to change the background colour in the right or left colmns only?. Im trying to change a few colours here & there & at the moment to change the column colours i edit the stylesheet infoboxcontents (background color) file. This also changes the background colour of the new "products for blabla" box which i dont want because all my images have white backgrounds & it looks a bit poxy. I will be grateful for any help here. Thanks, Adder. |
| Sponsored Links | ||
| ||
| |
|
#2
| ||||
| ||||
| Sure, here is how you do it: Add a new class to your stylesheet.css, I called it TD.column : Code: TD.column {
background: #F8E2AF;
}
Then edit your pages to reflect the new class. Find the section in your php files that looks like this: Code: <!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
Code: <!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td class="column" width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
__________________ Michael Sasek osCMax Developer
|
|
#3
| |||
| |||
| Thanks Msasek. Actually i dont think i explained myself correctly. Basically what i want to do is colour the info box contents background individually. i.e catagories background blue, reveiws background green etc. Is there a way to do this? I have read the hints & tips but cant see anything that refers to this specifically. Best Regards, Adder. |
|
#4
| ||||
| ||||
|
__________________ Michael Sasek osCMax Developer
|
|
#5
| |||
| |||
| Thanks Msasek, that did the trick. Thank you for your time. Cheers, Adder. http://www.firstcomputers.co.nz |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing search box background colour | PerfectEye | osCommerce 2.2 Modification Help | 1 | 05-06-2005 08:47 AM |
| Where to get colour code | tyz6970 | osCommerce 2.2 Modification Help | 4 | 08-02-2004 08:46 AM |
| How do you Remove Blue Columns??? | cxm322 | osCMax v1.7 Discussion | 9 | 01-18-2004 12:00 PM |
| pop up image background colour change | starchild | osCMax v1.7 Discussion | 0 | 10-01-2003 05:13 AM |
| Box border colour | Bah | osCommerce 2.2 Modification Help | 5 | 12-31-2002 07:32 AM |