|
The cellpadding will have a little effect. I've seen before that <pre> doesn't mix real well with tables. Joe Teff -----Original Message----- From: owner-web400@midrange.com [mailto:owner-web400@midrange.com]On Behalf Of Jon.Paris@hal.it Sent: Tuesday, March 27, 2001 5:49 PM To: web400@midrange.com Subject: Simple (?) HTML problem 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 +--- +--- | 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 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.