Thread: line break..

Results 1 to 9 of 9
  1. #1
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    help question line break..

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

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default 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
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: line break..

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

    Thanks!
    Jacob

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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;
    }

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  6. #6
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default 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..!
    Last edited by Soniccc; 9 Mar 2011 at 02:14 PM.

  7. #7
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: line break..

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

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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. #9
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: line break..

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

 

 

Similar Threads

  1. Line break
    By Soniccc in forum General Questions
    Replies: 9
    Last Post: 10 Jun 2011, 10:43 AM
  2. Line Break in EZ-Pages
    By fightthefourwalls in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Sep 2008, 10:14 PM
  3. Line break
    By ABLT Supplies in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Jun 2008, 11:42 AM
  4. Line Break in Welecme Email
    By dnolan in forum General Questions
    Replies: 0
    Last Post: 6 Aug 2007, 03:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg