Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2006
    Posts
    119
    Plugin Contributions
    0

    Default Text box option/attribute not wrapping

    I have an attribute that is a 7 row text box 50 characters wide. Is there a way to force it to wrap to a different line after 50 characters?

    example

    Thanks!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Text box option/attribute not wrapping

    It already does in FireFox ... it does not in IE ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jul 2006
    Posts
    119
    Plugin Contributions
    0

    Default Re: Text box option/attribute not wrapping

    That's interesting because I'm using Firefox and the box is contained (I can see all 4 sides) in FF but the text stays on one line. But in IE the box runs into and behind the right column yet the text wraps as it should.

    Really weird stuff.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Text box option/attribute not wrapping

    You probably need to force your textbox widths to be somewhat narrower, using the stylesheet. It appears to be bleeding into the right column, and thus part of the content is getting hidden ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Text box option/attribute not wrapping

    Like Linda I see the text wrapping as it approaches 50 characters in Firefox. The exception being when you have a single word longer than 50 characters when it doesn't want to break it.

    Internet Explorer is more of a concern since, as Dr Byte has observed, the box is much wider and disappears behind the right hand column. This can be solved by removing the width setting from the textfield style
    TEXTAREA {
    float: left;
    margin: auto;
    display: block;
    width: 95%;
    }
    Unfortunately you'll only get a 48 character wide box as, unlike FF, IE doesn't make any allowance for the scroll bar, but I'm afraid that only Bill Gates can fix that one.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Jul 2006
    Posts
    119
    Plugin Contributions
    0

    Default Re: Text box option/attribute not wrapping

    Quote Originally Posted by kuroi
    Like Linda I see the text wrapping as it approaches 50 characters in Firefox. The exception being when you have a single word longer than 50 characters when it doesn't want to break it.

    Internet Explorer is more of a concern since, as Dr Byte has observed, the box is much wider and disappears behind the right hand column. This can be solved by removing the width setting from the textfield styleUnfortunately you'll only get a 48 character wide box as, unlike FF, IE doesn't make any allowance for the scroll bar, but I'm afraid that only Bill Gates can fix that one.

    Ah yes...the style. I was workign in it all night bit it never hit me to look there. Thanks a million!

 

 

Similar Threads

  1. v154 Wrapping text in text box attribute
    By michaelchu in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Jan 2015, 06:47 PM
  2. Edting color of Attribute TEXT not option
    By LilleyPadGifts in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 30 Sep 2013, 03:06 PM
  3. Text Box Attribute - text not wrapping in shopping cart
    By cowgirlmodel in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 23 Oct 2009, 07:00 PM
  4. Attribute Option and Option Value Do NOT Match - Attribute was not added - : TEXT
    By jamesdavid in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 13 May 2008, 02:36 PM
  5. Attribute Text does not show text entry box, HELP!
    By dinki in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 8 Nov 2006, 01:14 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR