Zen Cart Logo
Forums / General Questions / line break..

line break..

Views: 1,509

Results 1 to 9 of 9
9 Mar 2011, 12:17 PM
#1
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

line break..

Hi! The links in my shopping cart exceeds the element width of my shopping cart.. (strangely enough) :cry: it would be neat to produce links within the cart element...

9 Mar 2011, 12:29 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
37

Re: line break..

This is a template issue, more than likely we will need a link to help you as the custom template you are running has many different elements than the vanilla Zen Cart template.

~Melanie

9 Mar 2011, 12:35 PM
#3
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: line break..

Ok. Guess I had it coming.. here's the link:https://www.test.soundfactory.nu

Thanks!
Jacob

9 Mar 2011, 12:51 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: line break..

A major factor in the problem is the font size in the sidebox. Do you really want the text that much bigger than the rest of your text?

stylesheet.css (line 1064)
.cartNewItem {
font-size: 14px;
}

stylesheet.css (line 420)
.cartNewItem {
color: #33CC33;
position: relative;
}

stylesheet.css (line 846)
.sideBoxContent div {
color: #0C335C;
font-size: 16px;
}

stylesheet.css (line 475)
#cartBoxListWrapper li, #ezPageBoxList li, .cartBoxTotal {
margin: 0;
padding: 0.2em 0;
}

stylesheet.css (line 430)
.cartBoxTotal {
font-weight: bold;
text-align: right;
}

9 Mar 2011, 1:08 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: line break..

You can use

overflow: auto;

to allow a scroll bar to appear when a "word" in the text is too wide to fit. You might not like the look of this, but it is a possibility.

There is another property which one of my references says is non-standard and supported in IE5.5+ only, but works now in Firefox 3.6:

word-wrap: break-word;

I don't know what other browsers may support this, but if FF and IE do (and it doesn't blow up other browsers) that is enough market share to be worthwhile.

9 Mar 2011, 1:10 PM
#6
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: line break..

well I reduced the font size (from 16px and 14px to 12px in both instances, I admit it wasn't very purposeful). Thanks for the overflow and word-wrap hint, I'll try those right away..!

9 Mar 2011, 1:28 PM
#7
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: line break..

The Query Cahche add-on killed My site.., I'll have to do a re-install before I try..

9 Mar 2011, 1:37 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: line break..

I just looked it up on w3schools.com, and word-wrap is now a CSS3 property "supported by all major browsers".
So you should be good to go with it.

9 Mar 2011, 8:47 PM
#9
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: line break..

It's very kind of you, looking this stuff up! Thanks! :smile: