Zen Cart Logo

Bestsellers box css

Locked

Views: 652

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 Nov 2010, 11:39 PM
#1
jonnyh avatar

jonnyh

New Zenner

Join Date:
Oct 2010
Posts:
10
Plugin Contributions:
0

Bestsellers box css

Hi
I'm using a template monster template, and am having trouble with what css code to use to give each of the 10 bestsellers a graphic background ie. a round rectangle to split them all up.

I've tried using quite a few methods with no luck.

link= CLICK HERE

Any help would greatly appreciated.

Thanks
Jon

1 Nov 2010, 11:54 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Bestsellers box css

Add to any of your stylesheets

#bestsellersContent .wrapper tr {border: 1px solid red;}

Adjust to suit. Unfortunately CSS border-radius doesn't work on table elements.

2 Nov 2010, 2:16 AM
#3
jonnyh avatar

jonnyh

New Zenner

Join Date:
Oct 2010
Posts:
10
Plugin Contributions:
0

Re: Bestsellers box css

Thanks for that.. worked well.

Quick couple of other questions:

  • I am getting a blank box in-between 1st and 2nd best seller items. Any idea why this is happening?
  • And if I want the text to drop 10px, and have price align left, what would be the best css to use?

thanks
Jon

2 Nov 2010, 3:12 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Bestsellers box css

The blank box has an <hr> in it. I don't know why the code puts one there and not between other items, but you would have to look at the sidebox files.
In view source:

<tr><td colspan=2><hr></td></tr>
2 Nov 2010, 3:22 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Bestsellers box css

Most of the formatting is hard-coded in the sidebox file, using antiquated and possibly deprecated tag attributes. The best solution would be to rewrite that part of the file to add classes and remove hard-coded styling, so the styling can be handled in the stylesheet. That's really something TM should be doing, but they don't care about standards or best practice or customizability, only what will get their look in every browser no matter how old.

<tr> <td valign=top><a href="http://www.allthecraze.com.au/index.php?main_page=product_info&products_id=263"><img src="images/DSC06525 copyD.png" alt="Dino Bandz" title=" Dino Bandz " width="59" height="65" /></a></td> <td valign=top><a href="http://www.allthecraze.com.au/index.php?main_page=product_info&products_id=263">Dino Bandz</a><BR><div align=right>$2.00</div></td> </tr>
3 Nov 2010, 1:09 AM
#6
jonnyh avatar

jonnyh

New Zenner

Join Date:
Oct 2010
Posts:
10
Plugin Contributions:
0

Re: Bestsellers box css

Thanks for the help... I had a look at those files and was at least able to do basic modification, and fixed the error.
Thanks again!