Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Alternate Row Background Color Colour


TeeCee-UK

Recommended Posts

Hi,

 

I have seen this on a number of OSC sites. Instead of using boarders to break up the information (as standard) you can use alternating background color.

 

For example on product listing the first listing has a white bg the second a grey bg the third a white bg etc...

 

The same thing can be applied to reviews or order history etc..

 

I'm sure there must be a contribution to do this but I can't seem to find it.

 

Can anyone help me out here?

 

Regards

 

Tom

Link to comment
Share on other sites

Hi,

 

I have seen this on a number of OSC sites. Instead of using boarders to break up the information (as standard) you can use alternating background color.

 

For example on product listing the first listing has a white bg the second a grey bg the third a white bg etc...

 

The same thing can be applied to reviews or order history etc..

 

I'm sure there must be a contribution to do this but I can't seem to find it.

 

Can anyone help me out here?

 

Regards

 

Tom

 

 

No contribution needed, its already included...

 

You can set the colors in stylesheet.css

Link to comment
Share on other sites

No contribution needed, its already included...

 

You can set the colors in stylesheet.css

 

Thanks, here is how to do it:

 

TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd {
 background: #FFFFFF; <<<<<HERE
}

TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even {
 background: #EFEFEF; <<<<< HERE

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...