Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Text box option/attribute not wrapping

Text box option/attribute not wrapping

Locked

Views: 2,198

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 Aug 2006, 2:51 AM
#1
sonicparke avatar

sonicparke

Zen Follower

Join Date:
Jul 2006
Posts:
120
Plugin Contributions:
0

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!

12 Aug 2006, 3:00 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Text box option/attribute not wrapping

It already does in FireFox ... it does not in IE ...

12 Aug 2006, 5:13 AM
#3
sonicparke avatar

sonicparke

Zen Follower

Join Date:
Jul 2006
Posts:
120
Plugin Contributions:
0

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.

12 Aug 2006, 9:17 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

12 Aug 2006, 12:57 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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.

13 Aug 2006, 1:22 AM
#6
sonicparke avatar

sonicparke

Zen Follower

Join Date:
Jul 2006
Posts:
120
Plugin Contributions:
0

Re: Text box option/attribute not wrapping

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!