Forums / Templates, Stylesheets, Page Layout / Borders around products

Borders around products

Locked

Views: 3,348

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
7 Nov 2006, 3:23 AM
#1
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Borders around products

I don't know if this is the right place to post this if it is not sorry to all. I have searched and could not find anything on this subject.

Can someone please tell me how and what file i need to modify to get boarders to show around the category pictures and the featured, new products and so on.

Like the picture shown

Thank you

7 Nov 2006, 7:40 AM
#2
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Borders around products

With css can create the effect although may not prefect, it is a starting point

/* Add borders to the cells of columnar display in center column */
.centerBoxContentsNew, .centerBoxContentsFeatured, .centerBoxContentsSpecials, .specialsListBoxContents {
	padding-bottom: 0.5em;
	padding-top: 0.5em;
	border-top: 0.1em solid #E7E7E7;
	border-left: 0.1em solid #E7E7E7;
	margin-right: -0.06em;
	margin-left: -0.06em;
}

/* For style of the link which under the images of above column display */ 
.centerBoxContentsNew a, .centerBoxContentsFeatured a, .centerBoxContentsSpecials a, .specialsListBoxContents a {
	display: block; 
	text-align: center;
	padding-left: 5%;
	padding-right: 5%;
}

A New Starter again

7 Nov 2006, 2:27 PM
#3
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Borders around products

Thank you that worked for me..

I do have another question can it be done for category images also. If it can How and what is the code i have to add for that.

7 Nov 2006, 3:32 PM
#4
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Borders around products

In what page?

.

A New Starter again

7 Nov 2006, 4:28 PM
#6
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Borders around products

You are welcome! :smile:

dscott1966:

On This page here is a link.

http://citynights.no-ip.info/edy/index.php?main_page=index&cPath=1
This under the class below.
.categoryListBoxContents

dscott1966:

and on these pages

http://citynights.no-ip.info/edy/index.php?main_page=index&cPath=1_3

also thanks for the quick response.
And this under the class below.
.centerBoxContentsProducts

They can be grouped together if no special requirement.

/* Add borders to the cells of columnar display in center column */
.centerBoxContentsNew, .centerBoxContentsFeatured, .centerBoxContentsSpecials, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsProducts {
	padding-bottom: 0.5em;
	padding-top: 0.5em;
	border-top: 0.1em solid #E7E7E7;
	border-left: 0.1em solid #E7E7E7;
	margin-right: -0.06em;
	margin-left: -0.06em;
}

A New Starter again

7 Nov 2006, 8:35 PM
#7
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Borders around products

Thank you so much it looks alot better. You have been a big help.

I do have one more question how do you get the border to go on the right side its on the left but not on the right. do i just play with the settings or do i need to put something else in the code. you can look at the last post at the links to see what i'm talking about.

7 Nov 2006, 8:41 PM
#8
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Borders around products

That is ok figured it out i just need to add this code, border-right: 0.1em solid #E7E7E7; to the one you gave me eariler to get it on the right.

Again Thank you, You have been a big help.

7 Nov 2006, 8:51 PM
#9
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Borders around products

Yes, the code above only have the borders for the left and top, and not for the right and bottom. You can add both of the the right and bottom borders to the css.

And in some situations, add a height attribute will give uniform display and improve the effect.

A New Starter again

7 Nov 2006, 8:57 PM
#10
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Borders around products

I do have one more question you said height, will that help to close of the boxes so that it will not have any spaces in between the first set and the second set and so on. if not how do i get that effect of a close box. that is the only problem. what is the code for that.

Take a look at this to see what i'm talking about please.

http://citynights.no-ip.info/edy/index.php?main_page=index&cPath=1

7 Nov 2006, 9:21 PM
#11
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Borders around products

You can add both of the 4 borders and form as a box. Also add a height to the css for uniform display but it need to predict the max height first. Otherwise the boxes will layout unevenly for different height.

/* Add borders to the cells of columnar display in center column */
.centerBoxContentsNew, .centerBoxContentsFeatured, .centerBoxContentsSpecials, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsProducts {
	padding-bottom: 0.5em;
	padding-top: 0.5em;
	border-top: 0.1em solid #E7E7E7;
	border-left: 0.1em solid #E7E7E7;
        border-right: 0.1em solid #E7E7E7; 
        border-bottom: 0.1em solid #E7E7E7; 
	margin-right: -0.06em; /* add more negative value if the cell drop to lower line */
	margin-left: -0.06em; /* add more negative value if the cell drop to lower line */
        height: 15em; /* adjust according to the maximum height of the product's data */ 
}

A New Starter again

7 Nov 2006, 9:29 PM
#12
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

Re: Borders around products

I Thank you again for all your help and knowledge that you have given and showing me the way to work with the style sheet to get the effect that i needed.

You are a asset to the community!!!!!!!!!

7 Nov 2006, 9:38 PM
#13
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Borders around products

You are most welcome! :smile:

And glad to hear that you have the problem solved. :smile:

A New Starter again

8 Nov 2006, 10:46 AM
#14
stone10 avatar

stone10

New Zenner

Join Date:
Nov 2006
Posts:
28
Plugin Contributions:
0

Re: Borders around products

Hi dscott1966... how did you get your new products box to change pictures and title? Looks so...:cool: