Follow via:
RSS
Email Alert
Question
0 Votes
+ -

HTML table word wrapping problem

I am not very good at CSS so this problem might be obvious.
This is a problem in IE9

I have the text wrapping in a cell, but for some reason it insists on wrapping in the middle of words, not on white space.

Not sure what I am doing wrong.

Here is a picture of it happening.
http://trevorsarchives.homenet.org/temp/CropperCapture%5b1%5d.jpg


And my CSS I have applied to the specific TD element
padding-left:20px;
border: 0px solid black;
text-wrap:normal;
white-space:normal;
overflow:auto;
word-break:normal;
width:100%;
word-wrap: break-word;

This is applied to all TD elements, exact same for TR
page-break-inside:avoid;
page-break-after:avoid;

and all Table elements have
width:100%;
page-break-inside:auto;


Any help would be appreciated.
31st Oct

Answers (1)

1 Vote
+ -
Figured it out
In case this happens to anyone else.

The problem was caused in the program generating the page, it was replacing all spaces with nbsp
Updated - 1st Nov
Answer the question
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.