473,396 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Firefox does not word-wrap?

I have a table cell that I want to wrap text inside of. I've tried both
hard and soft wrap, but Firefox refuses to obey. IE 6&7 handle the wrap
just fine. Does anyone know how I can fix this?
Sep 26 '06 #1
10 72630
Lorenzo Thurman wrote:
I have a table cell that I want to wrap text inside of. I've tried both
hard and soft wrap, but Firefox refuses to obey. IE 6&7 handle the wrap
just fine. Does anyone know how I can fix this?
Please provide the _URL_ to a _minimal_ example that shows what you tried.
--
Johannes Koch
Spem in alium nunquam habui praeter in te, Deus Israel.
(Thomas Tallis, 40-part motet)
Sep 26 '06 #2
Lorenzo Thurman wrote:
I have a table cell that I want to wrap text inside of.
OK, so you put text with work breaks in it and ... the URL of this page is?
I've tried both hard and soft wrap
You've tried what? Those are not values accepted by either the word-break or
text-wrap properties that are proposed for CSS 3 (which is the only thing I
can think of that might apply here).

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sep 26 '06 #3
Lorenzo Thurman wrote:
I have a table cell that I want to wrap text inside of. I've tried both
hard and soft wrap, but Firefox refuses to obey. IE 6&7 handle the wrap
just fine. Does anyone know how I can fix this?
Without seeing what you did, how can we know what you did wrong or what
you haven't done that will make a difference? There are no "hard and
soft wrap" properties that apply to table cells.
Sep 26 '06 #4
Johannes Koch wrote:
Lorenzo Thurman wrote:
>I have a table cell that I want to wrap text inside of. I've tried
both hard and soft wrap, but Firefox refuses to obey. IE 6&7 handle
the wrap just fine. Does anyone know how I can fix this?

Please provide the _URL_ to a _minimal_ example that shows what you tried.
I don't have a URL, this is an internal page. Here is the CSS

..rap{
word-wrap: break-word;
}

The textarea and table cell are defined like this:

<td class='rap'><textarea wrap='hard' cols='15' rows='5'></textarea>

Sep 26 '06 #5
On 2006-09-26, Lorenzo Thurman <lo*****@diespammerhethurmans.comwrote:
Johannes Koch wrote:
>Lorenzo Thurman wrote:
>>I have a table cell that I want to wrap text inside of. I've tried
both hard and soft wrap, but Firefox refuses to obey. IE 6&7 handle
the wrap just fine. Does anyone know how I can fix this?

Please provide the _URL_ to a _minimal_ example that shows what you tried.
I don't have a URL, this is an internal page. Here is the CSS

.rap{
word-wrap: break-word;
}

The textarea and table cell are defined like this:

<td class='rap'><textarea wrap='hard' cols='15' rows='5'></textarea>
I've never heard of the word-wrap property, break-word, or wrap="hard"!
And I can't find them in CSS 2.1 or HTML 4.0. These must be peculiar to
IE which is why they won't work in Firefox.

Better to stick to W3C standard stuff.

The white-space property is the closest thing in CSS, but AFAIK there's
no way ever to get words broken across lines in CSS 2.1, which I am
guessing is what "break-word" means. Unless you cheat by writing your
content with a zero-width space character between each character? That
might work.
Sep 26 '06 #6
Lorenzo Thurman wrote:
I don't have a URL, this is an internal page.
Then your question doesn't quite belong to the comp.infosystems.www
hierarchy, does it? (www = World Wide Web)
.rap{
word-wrap: break-word;
}
You're using a Microsoft-specific nonstandard CSS property, and now you are
wondering why it does not work on non-Microsoft browsers. (It is true that
word-wrap might exist in some "CSS 3" draft, but they are just sketchy
drafts that have a long way to go to become a recommendation, not to mention
universal implementation.)
The textarea and table cell are defined like this:

<td class='rap'><textarea wrap='hard' cols='15' rows='5'></textarea>
You haven't told at all what the real problem is. We can just make guesses.
One obvious problem is that you have made the textarea too small, even
ridiculously small. Try and fix that problem, instead of trying to alleviate
some of the symptoms.

The wrap="..." attribute in <textareais bad enough; no reason to make
things worse by making words break and users puzzled.

Handle wrapping in the _form handler_. Wrapping user input isn't a CSS
affair, or at least it shouldn't be.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Sep 27 '06 #7

Lorenzo Thurman wrote:
I have a table cell that I want to wrap text inside of. I've tried both
hard and soft wrap, but Firefox refuses to obey. IE 6&7 handle the wrap
just fine. Does anyone know how I can fix this?
Firefox wraps happily at spaces, so I suspect that you are using words
or strings that are wider than your table cells.

In this case, Firefox (and all the Mozilla family) won't wrap. I filed
a bug report about this 5 years ago, but it has not been well supported
and nobody is working on it now:

<https://bugzilla.mozilla.org/show_bug.cgi?id=95067>

The same problem used to exist in Opera and Safari. I reported the
same bug in these browsers, and Opera fixed it in a few months and
Apple in a couple of years.

--
Alan Wood
http://www.alanwood.net (Unicode, special characters, pesticide names)

Sep 27 '06 #8
Alan Wood wrote:
Lorenzo Thurman wrote:
>I have a table cell that I want to wrap text inside of. I've tried both
hard and soft wrap, but Firefox refuses to obey. IE 6&7 handle the wrap
just fine. Does anyone know how I can fix this?

Firefox wraps happily at spaces, so I suspect that you are using words
or strings that are wider than your table cells.

In this case, Firefox (and all the Mozilla family) won't wrap. I filed
a bug report about this 5 years ago, but it has not been well supported
and nobody is working on it now:
Thanks, this addresses my issue most directly. I've done some searching
around the 'net and it seems what I need to do, I can't do. You are
correct about the length of the strings. There are some strings that
will be longer than the alloted space. I'm not sure how to handle this,
but I'll figure out something.
<https://bugzilla.mozilla.org/show_bug.cgi?id=95067>

The same problem used to exist in Opera and Safari. I reported the
same bug in these browsers, and Opera fixed it in a few months and
Apple in a couple of years.

--
Alan Wood
http://www.alanwood.net (Unicode, special characters, pesticide names)
Sep 27 '06 #9

Lorenzo Thurman wrote:
There are some strings that
will be longer than the alloted space. I'm not sure how to handle this,
but I'll figure out something.
One solution is to detect Firefox, and then insert <brtags at
suitable intervals in your long strings.

This is the technique used here:
<http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=6435890>

Compare the display of the InChI there and in my data sheet:
<http://www.alanwood.net/pesticides/abamectin.html>

--
Alan Wood
http://www.alanwood.net (Unicode, special characters, pesticide names)

Sep 28 '06 #10

Lorenzo Thurman wrote:
There are some strings that
will be longer than the alloted space. I'm not sure how to handle this,
but I'll figure out something.
One solution is to detect Firefox, and then insert <brtags at
suitable intervals in your long strings.

This is the technique used here:
<http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=6435890>

Compare the display of the InChI there and in my data sheet:
<http://www.alanwood.net/pesticides/abamectin.html>

--
Alan Wood
http://www.alanwood.net (Unicode, special characters, pesticide names)

Sep 28 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: tomasio | last post by:
Dear Group, I recently experienced a strange behaviour on firefox 0.9.2 (OS: winxp prof. SP1): the div.Footnote (see code on http://tomasio.laudatio.com/jobs/Claudia/Website/stylesheet.css ) is...
8
by: McKirahan | last post by:
Firefox does not reflect selected option via innerHTML How do I get Firefox to reflect selected option values? <html> <head> <title>FFinner.htm</title> <script type="text/javascript">...
3
by: Urs Eichmann | last post by:
Hello I have an ASP.NET web site where you can page through lists by using INPUT TYPE=image buttons. I noticed that, in IE6, the whole page gets cleared and built again from the ground up, whereas...
1
by: Shiva SG | last post by:
Hello, We are testing a website, which has an index.asp page. Uploaded the files on two different servers. IE opens the index.asp page from both server locations. But Firefox opens the page...
7
by: sonnystarks | last post by:
Page construction in progress: http://www.sdisplay.info/test/ Firefox does not recognize background image referred to on styles.css IE sees it with no problem. What is the problem? Thanx,
8
by: hyejin | last post by:
I have a problem with dynamic iframe and document.close() on Firefox. Below two files create a dynamic iframe by JavaScript. These two samples do not have any problems on IE. But, on Firefox, the...
4
by: soozing | last post by:
Hi, I could use some help understanding how to get Firefox to correctly apply font and background colors to table elements. It seems to want to apply the colors from the body element to everything...
0
by: Killer42 | last post by:
Nice simple one today. Why does MS Word beep every time I paste, and how can I prevent it doing so? Apart from turning off all audio feedback, of course. Correction - every time I paste plain text...
17
by: ur.solame | last post by:
I have an image being generated by a PHP script-- I didn't write the code-- and the image itself is in a database. I've discovered that there is a big discrepancy between how the images appear...
6
by: Tmuldoon | last post by:
Hi, I have some Javascript that works on IE 6-7 but not Firefox(FF). FF throws this error when clicked: Hello, Using Publisher 6.2 and Firefox 2.0
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.