WordWrappingStyle

=Word Wrapping Style=

It is not so easy to get text word wrap when displayed, since browsers recognize different word wrap style commands.

Below find an example of a table with columns of different widths and word wrap. The column width will automatically adjust to the length of the longest word in that column.

The word wrapping style can be applied to any object that allows the style HTML command.

code format="vbnet" dim db$(6,10)

'fill array with information for i = 0 to 10 for j = 0 to 6 db$(j,i) = str$(j)+" ... "+str$(i) next next

'Word-Wrap style for different browsers WordWrap$ = "style='white-space: pre-wrap;";_ "white-space: -moz-pre-wrap;";_ "white-space: -pre-wrap;";_ "white-space: -o-pre-wrap;";_ "word-wrap: break-word'"

'create a table with a width expressed in Inch or Metric units html " " wait

'display the row number of the selected link [goHere] myRow = val(word$(EventKey$, 2, ".")) print "You selected Row ... "; myRow wait code