Forum Moderators: not2easy

Message Too Old, No Replies

Long text refuses to wrap in FF

.. But wraps fine in IE

         

Wlauzon

3:06 pm on Apr 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a dynamically created line of links - kind of like breadcrumbs - that I want to fit into a 500px wide box.

In certain cases, this can grow too wide, and go over 500px wide. In IE, it wraps just fine, making a 2nd line. But in Firefox it just keeps going, and going, and going... off the side of the page and outside the box it is supposed to fit in.

Any ideas what I am missing here?

coopersita

1:49 am on Apr 17, 2006 (gmt 0)

10+ Year Member



Does your line have any white spaces?:

home > about > staff

Or is it one long word?:

home>about>staff
home > about > staff

FF won't wrap long words

Wlauzon

4:07 am on Apr 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is like this in the code:

home > >about > staff

However, doesn't nbsp = non breaking space = a space that will not break a line?

I tried putting in the code for half an em ( ) but it still won't break.

Demaestro

4:34 am on Apr 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I am pretty sure that this is a option FF allows users to select in the about:config

To be honest I know why you want what you are asking about but I hate when IE wraps single word links when I don't want it to.

I would shorten the text in the links or have them cut off at X amount of charcters and have ...more to express the string has been cut off.

Wlauzon

1:03 pm on Apr 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since the links are breadcrumb type trails + 2 fixed links (Home and Back), pretty hard for me to control the length of the individual links. I can shorten the titles on a few, but that does not solve the basic problem.

Maybe if nothing else I can force the box it is in to put in a scroll bar til I get it figured out.

coopersita

4:55 pm on Apr 17, 2006 (gmt 0)

10+ Year Member



  are "no breaking space". So there is NO break between words, but it looks like a space. That's what they were created for.

If you want your line to break, you need to change those nbsps to regular spaces.

Wlauzon

3:42 am on Apr 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So why doesn't ( ) work?

It is classed as a breaking space.

Also the code that makes the trail insists on putting something coded in there (I can't just type a space in there). I tried using the hex notation for space, but it barfed.

Any other suggestions?

[edited by: SuzyUK at 3:14 pm (utc) on June 12, 2006]

iamlost

8:32 pm on Apr 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Have you tried the space character  ?
Works for me.

Wlauzon

1:37 am on Apr 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmm.. sort of.. I tried the (I guess) hex version of #0020, and it did not work.

I will try the   and see if that works.

----------------------

YAAAAAAYYYYYYY!

That fixed it - thanks a bunch :)