Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

background colors for column...


henya

Recommended Posts

Posted

I want to have a one background color for my page and a different one for the two columns. I only seem to be able to make the boxes a different color and I want the whole column.

Thank

Posted

One quick way to do that would be to add a style to the stylesheet.css file for those specific areas. Something like this:

TD.boxcolumns {
?background: #f9fff1; ?
}

 

Change the color number to suit. Then find this line in catalog/index.php (around line 55):

 

 ? ?<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

 

Change it to:

 

 ? ?<td class="boxcolumns" width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

 

 

Then around line 325, do the same for the right side column data cell:

 

    <td class="boxcolumns" width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin, 1759. տլ

Posted

Did what you said but it does not seem to have done anything. I want the whole column to be one color. ?

Posted

Check to see that you have the class attribute added to the correct <td>. I tested this before I posted, and it changed the color of the entire column on my test site.

They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin, 1759. տլ

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...