• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1243
  • Last Modified:

Make Firefox wrap long lines with hyphen or dash or whatever

I have a long title:
NEW CRYSTALLINE FORMS OF (2S)-N-5-(AMINO(IMINO)METHYL)-2-THIENYLMETHYL-1-(2R)-2-((CARBOXYMETHYL)AMINO)-3,3-DIPHENYLPROPANOYL-2-PYRROLIDINECARBOXAMIDE.nH2O

I put it in a Table with 500 px fixed width
<table border="1" width="500">
<tr><td>NEW CRYSTALLINE FORMS OF (2S)-N-5-(AMINO(IMINO)METHYL)-2-THIENYLMETHYL-1-(2R)-2-((CARBOXYMETHYL)AMINO)-3,3-DIPHENYLPROPANOYL-2-PYRROLIDINECARBOXAMIDE.nH2O
</td></tr></table>

Using endash does not change the fact that FF will not break this line - I need FF to break the line when it is longer than the table is wide

<table border="1" width="500">
<tr><td>NEW CRYSTALLINE FORMS OF (2S)&#8211;N&#8211;5&#8211;(AMINO(IMINO)METHYL)&#8211;2&#8211;THIENYLMETHYL&#8211;1&#8211;(2R)&#8211;2&#8211;((CARBOXYMETHYL)AMINO)&#8211;3,3&#8211;DIPHENYLPROPANOYL&#8211;2&#8211;PYRROLIDINECARBOXAMIDE.nH2O
</td></tr></table>

Any suggestions?


0
Michel Plungjan
Asked:
Michel Plungjan
  • 2
1 Solution
 
RoonaanCommented:
<td><div style="white-space:nowrap;">...........</div></td>

-r-
0
 
Michel PlungjanIT ExpertAuthor Commented:
Oops.

I missed a MAKE

I WANT firefox to wrap
0
 
GrandSchtroumpfCommented:
You can use <wbr>
http://www.blooberry.com/indexdot/html/tagpages/w/wbr.htm
Note that this tag is not part of the w3c html standard but is supported by most browsers.  This is what this site uses to wrap long lines.

NEW CRYSTALLINE FORMS OF (2S)-<wbr>N-<wbr>5-<wbr>(AMINO(IMINO)METHYL)-<wbr>2-<wbr>THIENYLMETHYL-<wbr>1-<wbr>(2R)-<wbr>2-<wbr>((CARBOXYMETHYL)AMINO)-<wbr>3,3-<wbr>DIPHENYLPROPANOYL-<wbr>2-<wbr>PYRROLIDINECARBOXAMIDE.nH2O
0
 
Michel PlungjanIT ExpertAuthor Commented:
That seems to work, thanks
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now