Forums / Templates, Stylesheets, Page Layout / Restyling the table in the shopping cart page

Restyling the table in the shopping cart page

Locked

Views: 1,346

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 Dec 2007, 5:31 AM
#1
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Restyling the table in the shopping cart page

I want to override some html tags and add a border to the table displaying the contents of the shopping cart. How would I do that? I tried setting styles for the id, but that didn't work. I just don't know css well enought yet to do it. Here is what I see in the html:

<table border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay"> <tr class="tableHeading"> <th scope="col" id="scQuantityHeading">Qty.</th> <th scope="col" id="scUpdateQuantity"> </th> <th scope="col" id="scProductsHeading">Item Name</th> <th scope="col" id="scUnitHeading">Unit</th> <th scope="col" id="scTotalHeading">Total</th>
    <th scope="col" id="scRemoveHeading"> </th>
 </tr>
12 Dec 2007, 8:10 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Restyling the table in the shopping cart page

Inline styling always takes precedence over external stylesheets, but you can add !important to a property in the stylesheet to override the inline style:

#cartContentsDisplay {border: 1px solid #aabbcc !important;}

12 Dec 2007, 3:55 PM
#3
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: Restyling the table in the shopping cart page

Thanks, but I've tried that and it makes no difference. In fact, it's set that way now. Actually, I've tried it a few times and it never seems to work. Checked my syntax, too. Does its position in the stylesheet matter? I use FF 2 on Mac. Haven't checked IE or others.

12 Dec 2007, 5:16 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Restyling the table in the shopping cart page

Position can matter. If the same thing is reset after your declaration, the second one will control.
Search your stylesheet for any other instances.

6 May 2008, 10:34 PM
#5
meeeearcus avatar

meeeearcus

New Zenner

Join Date:
Jan 2008
Posts:
2
Plugin Contributions:
0

Re: Restyling the table in the shopping cart page

I'm also having an extremely difficult time changing the width of the shopping cart table. Can anyone point me in the right direction of what to edit in the stylesheet. I've tried things such as #cartContentsDisplay {width: 350px !important;} to no avail. Even with the declaration at the bottom of the page nothing helps. Is there some parent that I'm not finding? Also I'm having issues with long quantity boxes, a stretched update cart button and checkbox. :frusty:

6 May 2008, 11:58 PM
#6
meeeearcus avatar

meeeearcus

New Zenner

Join Date:
Jan 2008
Posts:
2
Plugin Contributions:
0

Re: Restyling the table in the shopping cart page

I found the guilty party here: input {width: 130px !important; /*orginally auto: hack for Zen Cart resizing buttons, grr */
} oops! It was the children that were causing me such grief for once.