Forums / Templates, Stylesheets, Page Layout / Add border to Featured Products box

Add border to Featured Products box

Locked

Views: 1,110

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Jan 2008, 8:52 PM
#1
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Add border to Featured Products box

Hi

I am aware that the Featured Products, on the homepage, are surrounded by centerBoxWrapper and that a border can be applied to this

however, i would like to wrap the products in another div that has a border, left, right and bottom, just so the border doesn't also wrap the header

can anyone advise how i might go about this and which code to tweak?

i have gone through which files are invloved in the creation and presentation of featured products, but is not clear where i can add a div to wrap around

cheers and happy new year!

1 Jan 2008, 9:07 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Add border to Featured Products box

You can apply the border to
.centerBoxWrapper {
border: 1px solid #112233;
}

and then make the header overlap it and hide it:

.centerBoxHeading {
margin: -1px -1px 0 -1px;
}

1 Jan 2008, 9:09 PM
#3
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Add border to Featured Products box

oooohh, you beauty!

1 Jan 2008, 9:39 PM
#4
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Add border to Featured Products box

ok, rtied that, partially worked http://dev.diyland.co.uk/

still got some lines up top though, on ie anyway

1 Jan 2008, 9:59 PM
#5
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Add border to Featured Products box

I go it sorted for firefox, but not ie:

.centerBoxHeading {
background-image: url(../images/tile_back2.gif);
margin-top: 0px;
margin-right: -2px;
margin-bottom: 0;
margin-left: -2px;
padding-top: 0.5em;
padding-right: 0.2em;
padding-bottom: 0.5em;
padding-left: 0.2em;
background-repeat: no-repeat;
background-position: left top;
}

any ideas?