Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q89 Can I show tabular data without using tables?

You are here: irt.org | FAQ | JavaScript | Table | Q89 [ previous next ]

1. You could use the <pre> and </pre> tags to format your data:

<pre>
          X  XX  XXX  XXXX  XXXXX
row 1     1  12  123  1234  12345
row 2     9  99  999  9999  99999
row 3     9      999        99999
row 4        99       9999
</pre>

2. You could use a textarea in a form:

<form>
<pre>
          x  xx  xxx  xxxx  xxxxx
</pre>
<textarea cols="40" rows="10">
row 1     1  12  123  1234  12345
row 2     9  99  999  9999  99999
row 3     9      999        99999
row 4        99       9999
row 5     1  12  123  1234  12345
row 6     9  99  999  9999  99999
row 7     9      999        99999
row 8        99       9999
row 9     1  12  123  1234  12345
row 10    9  99  999  9999  99999
row 11    9      999        99999
row 12       99       9999
row 13    1  12  123  1234  12345
row 14    9  99  999  9999  99999
row 15    9      999        99999
row 16       99       9999
row 17    1  12  123  1234  12345
row 18    9  99  999  9999  99999
row 19    9      999        99999
row 20       99       9999
</textarea>
</form>

©2018 Martin Webb