Re: Tables

At 3:46p 05/19/96, Thomas van Gulick wrote:

>I know, actually what I want is not a table, it is something like a profile
>in the form:
>
>Name          : xyz
>Age           : 201
>City          : aabbcc
>
>etc. Previously I did it with <PRE></PRE>, but I don't like the fixed
>font and thus tried out <TABLE></TABLE> with CELLPADDING, CELLSPACING and
>BORDER set to 0, but this resulted in 'sticky' columns ie, the result for
>the above table would be:
>
>Namexyz
>Age 201
>Cityaabbcc


Put the colons in a column by themselves, like so:

<table border=0 cellspacing=0 cellpadding=0>
<tr><td>Name<td>&nbsp;:&nbsp;<td>xyz
<tr><td>Age<td>&nbsp;:&nbsp;<td>201
<tr><td>City<td>&nbsp;:&nbsp;<td>aabbcc
</table>

In place of &nbsp; you could also pick up dot_clear.gif from dsiegel.com
(if you don't already have a clear, transparent gif) and use like so:

<table border=0 cellspacing=0 cellpadding=0>
<tr><td>Name<td><IMG SRC="gifs/dot_clear.gif" width=8 height=1
                 align=bottom ALT="">:<IMG SRC="gifs/dot_clear.gif"
                 width=8 height=1 align=bottom alt=""><td>xyz

<tr><td>Age<td><IMG SRC="gifs/dot_clear.gif" width=8 height=1
                 align=bottom alt="">:<IMG SRC="gifs/dot_clear.gif"
                 width=8 height=1 align=bottom alt=""><td>201

<tr><td>City<td><IMG SRC="gifs/dot_clear.gif" width=8 height=1
                 align=bottom alt="">:<IMG SRC="gifs/dot_clear.gif"
                 width=8 height=1 align=bottom alt=""><td>aabbcc
</table>

The reason I use the width attribute on a clear gif rather than using the
width attribute for a cell, is that it will work with AOL's (InterCon's)
just-released browser, which although it finally "supports" tables, it
ignores specified widths. Besides, this method lets you specify "lopsided"
positioning of the colons within the cell. :-)

-Walter

__________________________________________________________________________
    Walter Ian Kaye <boo@best.com>     Programmer - Excel, AppleScript,
          Mountain View, CA                         ProTERM, FoxPro, HTML
 http://www.natural-innovations.com/     Musician - Guitarist, Songwriter

Received on Sunday, 19 May 1996 13:31:10 UTC