× 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: Re: Simple (?) HTML problem
  • From: "Phil Groschwitz" <phil@xxxxxxxxxxxxxx>
  • Date: Thu, 29 Mar 2001 11:45:01 -0500

OK, I may have a solution.

But, you've got to use Netscape 6.

That probably kills this solution, doesn't it.

Here it is anyway:

Use this stylesheet: (named jon.css)
/********/
P{
 background-color:Aqua;
}
 TD
{
 font: 15px monospace;
 white-space: pre;
}
/********/

and this html (jon.htm) from Anton:

/*********/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Jon</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<link rel="stylesheet" type="text/css" href="jon.css">
</HEAD>
<BODY>
<TABLE>
<P> Following is some data:</p>
  <TR>
    <TD>Heading</TD></TR>
  <TR>
    <TD>1  3        5</TD></TR>
  <TR>
    <TD>12345678901234567890</TD></TR>
  <TR>
    <TD>JK LMN O P QR </TD></TR>
  <TR>
    <TD>More test data</TD></TR>

</TABLE>

</BODY></HTML>
/***********/

This preserves the whitespace.  The only necessary stylesheet element is
white-space: pre.  I included the others so you can tell if anything is
working.

whitespace is valid in CSS1 only.  And the only browser I could make it work
in was Netscape 6.

Phil





----- Original Message -----
From: "Anton Gombkötö" <Anton.Gombkoetoe@avenum.com>
To: <WEB400@midrange.com>
Sent: Thursday, March 29, 2001 3:59 AM
Subject: RE: Simple (?) HTML problem


>
> >Replacing every space with &nbsp is just a pain but it looks
> >like the only answer.
>
> Sorry about the <tt>; it looked so good.
>
> There's another solution by means of cascading style sheets, like several
> people said, where you can control almost everything concerning
presentation.
>
> If that's suitable for you, (needs relatively modern browsers) i'm sure
> that we all can work it out here. Everybody trying to put some piece of
> code online should have the same problem.
>
> (I used <pre> for mine, but i didn't do it in a table; i used <pre> more
> like <p>. And i was surprised that the w3c checker felt OK with <pre>
> inside a <td>.)
>
>
>
> Mit freundlichen Grüssen / best regards
>
> Anton Gombkötö
>
> Avenum Technologie GmbH
> Wien - Mattsee - Stuttgart
> e-mail Office   :       mailto:Anton.Gombkoetoe@avenum.com
> Homepage        :       http://www.avenum.com
>
> Lest das Redbook / read the redbook "Who knew you could do that with
RPG?":
> http://www.redbooks.ibm.com/abstracts/sg245402.html
>
> +---
> | 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 thread ...

Follow-Ups:
Replies:

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.