× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Simple (?) HTML problem
  • From: Jon.Paris@xxxxxx
  • Date: Tue, 27 Mar 2001 19:48:39 -0400

I am working on a simple "print" CGI program and cannot get the HTML to
co-operate.  Can anybody tell me what I'm missing.

The code below shows basically what I'm trying to do.  It is a simple table
to contain pre-formed print lines.  The tags that are causing the problem
are the <PRE> ones.  They work just fine in terms of maintaining the
spacing within a line, but they cause the row height to be doubled for no
reason I can see.  It seems to me that I should be able to use <CODE>
instead.  True enough this resolves the height issue, but also causes the
line spacing to get scewed up because multiple spaces are compressed.  This
seems very strange behaviour for a tag designed to allow you to show code
samples but .....

 <HTML><BODY>
 <TABLE border="1" rules="groups" width="800" cellpadding=5>
   <THEAD BGCOLOR="#94D6E7">
     <TR><TD><pre>Heading</pre></TD></TR>
   </THEAD>
   <TBODY>
     <TR><TD><pre>         1         2</pre></TD></TR>
     <TR bgcolor="#C6EFF7"><TD><pre>12345678901234567890</pre></TD></TR>
     <TR><TD><pre>JK LMN O P QR </pre></TD></TR>
     <TR bgcolor="#C6EFF7"><TD><pre>More test data</pre></TD></TR>
   </TBODY>
 </TABLE>
 </BODY></HTML>

Any inspirations ?


+---
| This is the WEB400 Mailing List!
| To submit a new message, send your mail to WEB400@midrange.com.
| To subscribe to this list send email to WEB400-SUB@midrange.com.
| To unsubscribe from this list send email to WEB400-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.