Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009
    Posts
    86
    Plugin Contributions
    0

    Default Table Column Background Color

    I'm trying to change the background color of my product listing table for only the image column to white. Take a look here:

    http://www.beyonlounge.com/index.php...&cPath=163_164

    i've made the image the image cells 150 X 150 but i would like those cells to be white. The images are all re-sized by image handler to the width of 150px and after using vertical-align:middle to center them in the cell i would like them to have white backgrounds (the cells)

    It just looks a bit funky the way it is, and i'd like a uniform look, any suggestions?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Table Column Background Color

    You can do this for modern browsers with a few lines in your stylesheet. Add to the end of your stylesheet.css
    Code:
    .productListing-data {background: #ffffff;}
    * html .productListing-data {background: none;}/* IE6 hack */
    .productListing-data+.productListing-data {background: none;}
    This will not work in IE6 because it doesn't understand the adjacent selector "+", so the
    * html hack will leave the background black for IE6 users only.

    There is a more robust method available in the flexible product listing mod, posted in the styling product listing pages with column layout grid thread, post 50. The CSS-only version in that mod should allow styling for every browser.

  3. #3
    Join Date
    May 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Table Column Background Color

    hey thanks Glenn the code worked perfectly :-) That was buggin me for awhile!

    I went ahead and installed the Flexible Product Listing mod too, but I couldn't achieve the same results regarding the white background in the image column.. I tried editing:

    .listingImage
    .listingProductImage

    but couldn't get the images to 'vertical-align:middle' or have the background of the column be white. I went back to the old way for now.. but I think the mod will be great once I figure out the css for it.

    Good Work, and thanks again.

 

 

Similar Threads

  1. column layout grid changing the background color
    By Checooper in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Aug 2010, 04:40 PM
  2. Changing Right Column Background Color
    By tanyaleann in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Sep 2008, 09:25 PM
  3. Change color of background in boxes in center column
    By jaylyns in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 22 Aug 2008, 12:19 AM
  4. Background Color on Left Column
    By Salina13 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Nov 2006, 04:21 PM

Posting Permissions

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