Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Featured Products Border

Featured Products Border

Locked

Views: 1,718

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
28 Mar 2007, 1:26 PM
#1
wallacrj avatar

wallacrj

New Zenner

Join Date:
Dec 2005
Posts:
18
Plugin Contributions:
0

Featured Products Border

Hi,

I couldnt find a thread that addressed this so here it goes.

I am trying to remove the border that is around the featured products section on my main page.

https://www.nsidecollectibles.com

any help would be greatful.. i have been searching my css file and have not been able to find a fix.

Thanks!!

28 Mar 2007, 1:36 PM
#2
wallacrj avatar

wallacrj

New Zenner

Join Date:
Dec 2005
Posts:
18
Plugin Contributions:
0

Re: Featured Products Border

I changed the .centerboxwrapper to no border but i was only hoping to change the featured products section not the new products section

28 Mar 2007, 1:55 PM
#3
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Featured Products Border

Specificity is the word of the day. With a sufficiently specific reference you can style anything in Zen.

If you look at Page Source in your browser, you'll see that the featured products are in a div with a class of...

class="centerBoxContentsFeatured centeredContent back"

whereas the new products are in a div with a class of...

class="centerBoxContentsNew centeredContent back"

And all of that is inside a larger div classed as centerboxwrapper. So when you change that one you change both. Instead, change (add it if it's not there) the class centerBoxContentsFeatured. Apply whatever styles you want to it, and different styles to centerBoxContentsNew and you should be fine.

Note: the above will apply a style to each of the products independantly. If instead you want to style the block the featured products are in, all at once, there's an id you can use. The same div that is classed as centerboxwrapper is IDed as either featuredProducts or whatsNew, so you can apply your styles there to, for example, put a colored box around all the New products as a block, or a colored background behind all the Featured products as a block.

HTH

Rob

28 Mar 2007, 2:11 PM
#4
wallacrj avatar

wallacrj

New Zenner

Join Date:
Dec 2005
Posts:
18
Plugin Contributions:
0

Re: Featured Products Border

actually your note at the bottom is what i was trying to do. i was hoping to affect the block border. although i could not find a featuredproducts IDed.

thanks

28 Mar 2007, 2:18 PM
#5
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Featured Products Border

although i could not find a featuredproducts IDed.

If it's not in your style sheet, you can add it as ...

#featuredProducts {
border: whatever;
}

There are many classes and IDs used in the Zen code which are not entered in the stylesheet. They're there for our use if we want them.

Rob

28 Mar 2007, 2:51 PM
#6
wallacrj avatar

wallacrj

New Zenner

Join Date:
Dec 2005
Posts:
18
Plugin Contributions:
0

Re: Featured Products Border

fantastic. thanks all is well

17 Aug 2010, 11:36 PM
#7
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Featured Products Border

rstevenson:

If it's not in your style sheet, you can add it as ...

#featuredProducts {
border: whatever;
}

There are many classes and IDs used in the Zen code which are not entered in the stylesheet. They're there for our use if we want them.

Rob

Yah...it work for me!
Thanks!