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,410
  • 29
  • 105
  • 173

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,410
  • 29
  • 105
  • 173
0

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

Einar Sundgren
  • 4,275
  • 8
  • 38
  • 57