2

Any simple solution to this dilemma? I've tried this possible solution, but it didn't seem to work inside iframes.

Help?

JSFiddle Link

EDIT: I've searched myself online, and they all say specify a percentage. But I don't initially have content in it, and I set designMode to 'On'. Just to mention to filter out useless answers.

Community
  • 1
  • 1
Lucas
  • 16,930
  • 31
  • 110
  • 182

2 Answers2

8

Ha, solved! Used javascript:

myiframe.document.body.style.wordWrap = 'break-word';

that did it when put into window.onload.

Solved, finally!

Lucas
  • 16,930
  • 31
  • 110
  • 182
0

In CSS you could do it by using word-wrap: break-word;

Einar Sundgren
  • 4,325
  • 9
  • 40
  • 59
Viktor Soroka
  • 187
  • 2
  • 4