Forums / Templates, Stylesheets, Page Layout / CenterBox-Main Pg- I want borders

CenterBox-Main Pg- I want borders

Locked

Views: 1,061

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
22 Oct 2008, 9:55 PM
#1
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

CenterBox-Main Pg- I want borders

My main page center column images do not line up or center across section. I tried using stylesheet to center, but keeps doing entire area.

I would like to add dotted line or solid and center images/info. inside the box. I am not very good at css. I have been trying for several days.

Help.:frusty:

Kim

kburner
Burner Christian Bookstore
https://www.burnerbooks.com

23 Oct 2008, 7:47 AM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,844
Plugin Contributions:
17

Re: CenterBox-Main Pg- I want borders

Part of the problem is that the system will change settings based on your telling it how many images across. In this case, you have it set to four. The system gives each item a width of 25%. This would be fine if it were not for padding that also effects it.

Around line 902 of your stylesheet.css, the margin-left adds enough to the overall total that 100% is exceeded and one item is moved to the next line.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

23 Oct 2008, 8:25 AM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: CenterBox-Main Pg- I want borders

You can trick the system into allowing enough room for borders by giving the elements negative side margins:```
.centerBoxContents, .specialsListBoxContents, .additionalImages,
.centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew {
margin-top: 1em;
margin-bottom: 1em;
margin-left: -0.4em;
margin-right: -0.4em;
border-left: 1px dotted #aaaaaa;
border-right: 1px dotted #aaaaaa;
}


Notice that some of the borders are shorter than others - this cannot be overcome without some PHP coding.
You might want to try the Column Divider Pro mod, as it compensates for different height products in a row, at the cost of a bunch of HTML table markup.
23 Oct 2008, 6:44 PM
#4
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: CenterBox-Main Pg- I want borders

gjh42:

You can trick the system into allowing enough room for borders by giving the elements negative side margins:```
.centerBoxContents, .specialsListBoxContents, .additionalImages,
.centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew {
margin-top: 1em;
margin-bottom: 1em;
margin-left: -0.4em;
margin-right: -0.4em;
border-left: 1px dotted #aaaaaa;
border-right: 1px dotted #aaaaaa;
}

> 
> Notice that some of the borders are shorter than others - this cannot be overcome without some PHP coding.
> You might want to try the Column Divider Pro mod, as it compensates for different height products in a row, at the cost of a bunch of HTML table markup.

Thank you so much for the information! I will try the column divider pro mod.
Kim:clap:

kburner
Burner Christian Bookstore
https://www.burnerbooks.com

23 Oct 2008, 9:23 PM
#5
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: CenterBox-Main Pg- I want borders

I loaded the Column Divider Pro and went great! But....I have noticed that many people (potential customers) do not like the dotted grid......how do I change to solid line.

Kim

kburner
Burner Christian Bookstore
https://www.burnerbooks.com

24 Oct 2008, 6:28 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: CenterBox-Main Pg- I want borders

stylesheet_dotline.css shows that a background image is being used. Presumably you could replace that with your own, or style .vDotLine and .hDotLine with solid borders.```
.vDotLine
{
background-color: transparent;
background-image: url(../images/delim_v.gif);
background-repeat: repeat-y;
background-attachment: scroll;
width: 20px;
font-size: 1px;
}

.hDotLine
{
background-image: url(../images/delim_v.gif);
padding:1px 0;
}