osCmax v2.5 User Manual
Results 1 to 5 of 5

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

      
  1. #1
    New Member
    Join Date
    Apr 2003
    Posts
    5
    Rep Power
    0


    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.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Apr 2003
    Posts
    5
    Rep Power
    0


    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.

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Apr 2003
    Posts
    5
    Rep Power
    0


    Default

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

    Cheers, Adder.

    http://www.firstcomputers.co.nz

Similar Threads

  1. Changing search box background colour
    By PerfectEye in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-06-2005, 08:47 AM
  2. Where to get colour code
    By tyz6970 in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 08-02-2004, 08:46 AM
  3. How do you Remove Blue Columns???
    By cxm322 in forum osCmax v1.7 Discussion
    Replies: 9
    Last Post: 01-18-2004, 12:00 PM
  4. pop up image background colour change
    By starchild in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 10-01-2003, 05:13 AM
  5. Box border colour
    By Bah in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 12-31-2002, 07:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •