Word wrap: Difference between revisions
Content added Content deleted
Line 86: | Line 86: | ||
wrap$ = " style='white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;";_ |
wrap$ = " style='white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;";_ |
||
"white-space: -o-pre-wrap;word-wrap: break-word'" |
|||
' ----------------------------------------------------- |
|||
' display doc$ at 60% and 40% of the screen |
|||
' ----------------------------------------------------- |
|||
html "<table border=1 cellpadding=2 cellspacing=0><tr" + wrap$ +" valign=top>" |
html "<table border=1 cellpadding=2 cellspacing=0><tr" + wrap$ +" valign=top>" |
||
html "<td width=60%>" + doc$ + "</td><td width=40%>" + doc$ + "</td></tr></table>"</lang> |
html "<td width=60%>" + doc$ + "</td><td width=40%>" + doc$ + "</td></tr></table>"</lang> |
||
output will adjust as you stretch the browser |
output will adjust as you stretch the browser and maintain a 60 to 40 ratio of the width of the screen. |
||
<pre> |
<pre> |
||
---------- at 60%----------------------- | -------- at 40%---------------------- |
---------- at 60%----------------------- | -------- at 40%---------------------- |