- From: Jonathan L Neuenschwander <jonathan@ecn.purdue.edu>
- Date: Thu, 27 Mar 1997 11:40:09 -0500 (EST)
- To: h.a.vanderarend@student.utwente.nl (Erik van der Arend)
- Cc: www-html@w3.org
> How do you align with a decimal point ? Or what is wrong with the
> code below. This code is copied from the HTML 3.0 specification
> at http://www.w3.org/pub/WWW/MarkUp/html3/tables.html.
> I'm using Netscape 3.0 and I got the screen-output:
As other have pointed out, HTML 3.0 died a year and a half ago. However, the
tables work is continuing on. The working draft is at:
http://www.w3.org/pub/WWW/TR/WD-tables
And both Netscape and Microsoft have announced that they intend to support it.
From that document, it looks to me like your example should read:
<HTML>
<table>
<tr align=char char=":">
<!-- I'm not real good at reading SGML DTDs, but it looks like
align=":" should work?-->
<td>
name: <input name="name" size=18><br>
card number: <input name="cardnum" size=18><br>
expires: <input name="expires-month" size=2> /
<input name="expires-year" size=2><br>
telephone:<input name="phone" size=18><br>
</table>
</HTML>
Like I said, Netscape and Microsoft have said they both intend to support it,
meaning they don't yet. At least not fully. I tried the above with both
Netscape Navigator 4.0b2 and Microsoft IE 3.02, and both just left-justified
the text. (Maybe I misinterpreted the draft?)
In the meantime, may I suggest the following workaround:
<HTML>
<table cellpadding="0" cellspacing="0">
<tr>
<td align=right>name: </td>
<td align=left><input name="name" size=18>
</tr>
<tr>
<td align=right>card number: </td>
<td align=left><input name="cardnum" size=18></td>
</tr>
<tr>
<td align=right>expires: </td>
<td align=left><input name="expires-month" size=2> /
<input name="expires-year" size=2></td>
</tr>
<tr>
<td align=right>telephone: </td>
<td align=left><input name="phone" size=18></td>
</tr>
</table>
</HTML>
Hope this is helpful,
Jonathan
jonathan@weirdness.com _/ _/ _/ _/ And it would've worked
QUESTION AUTHORITY -- _/ _/ _/_/ _/ if it hadn't been for
And the authorities _/ _/ _/ _/_/ those meddling kids and
will question you. _/_/_/_/ _/_/_/_/ _/ _/ their stupid dog
Received on Thursday, 27 March 1997 11:40:41 UTC