RE: SV: Dumb HTML question

by Klaas De Waele <klaas(at)gracegraphics.be>

 Date:  Wed, 4 Jul 2001 09:04:31 +0200
 To:  "'David.Artiss(at)boots.co.uk'" <David.Artiss(at)boots.co.uk>,
"'jc'" <jc(at)Mejeri.dk>
 Cc:  "'hwg-techniques(at)hwg.org'" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
Solution...


<.textarea style="border: 0px; overflow-y: hidden; overflow-x: hidden;
width: 100px; height: 60px;">
test<.h1>
test<./h1>fsqdfdf
<./textarea>

Please do mind the following...

the overflows are for hiding eventual scrollbars.the width and height are
required in these cases, as Netscape 4.7x doesn't allow for you to set the
cols and rows in these cases.

Also mind, the line breaks are translated into returns in IE but not in NS.
Also, the wrap=soft to set it will not help.

So this should be useable in IE.

In Mozilla, overflow-x will be ignored if the text is too long and a fixed
with is set through stylesheets.  IE will in this case wrap the text.

Anyways, if you're looking for a way to display code, this is the way.

Of course, you can always display a .txt file in an inline frame or
something and get rid of all these things alltogether.


As an extra... many sites use textarea's to display code, like javascript to
copy and paste.  There's a lot of them around.  I was trying to get online
and see how they do it, but it seems like I'm unable to get online...


- Kayjey -



-----Oorspronkelijk bericht-----
Van: owner-hwg-techniques(at)hwg.org
[mailto:owner-hwg-techniques(at)hwg.org]Namens David.Artiss(at)boots.co.uk
Verzonden: dinsdag 3 juli 2001 15:37
Aan: jc
CC: hwg-techniques(at)hwg.org
Onderwerp: Re: SV: Dumb HTML question


Hmmm, PRE doesn't appear to be the one.

What I wanted was for...

<.pre><.h1>Test<./h1><./pre>

to appear as :

<.h1>Test<./h1>

on screen - but obviously without the dots. I've tried all sorts but with no
joy.

David.

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.