osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Background colour in columns only

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-12-2003, 02:29 PM
New Member
 
Join Date: Apr 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adder667
Default Background colour in columns only

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 04-12-2003, 05:27 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,492
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default This is how you do it...

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;
}
Make the color #F8E2AF whatever you want.

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 //-->
and change it to look like this (note the new class="column" in the <td> tag). :

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 //-->
Add this to all the files in the /catalog dir that display the columns, and you are done.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-12-2003, 09:51 PM
New Member
 
Join Date: Apr 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adder667
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 04-12-2003, 09:54 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,492
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

This is what you need:

http://www.oscdox.com/modules.php?op...ddColorEachBox
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 04-14-2003, 01:02 AM
New Member
 
Join Date: Apr 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adder667
Default

Thanks Msasek, that did the trick.
Thank you for your time.

Cheers, Adder.

http://www.firstcomputers.co.nz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 06:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax