Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 31 Mar 2001.
Re: Classic ascii pics

Re: Classic ascii pics

In article <3AC...@rz.uni-karlsruhe.de>, Markus Gebhard wrote:
>Ilmari Karonen wrote:
>> ...  The correct solution is to use
>> CSS, either in the style attribute or in a full style sheet:
>
>But what about browsers that can not handle CSS?

They'll still show it in a monospaced font, just not necessarily the one
you specified.  Next question?


>I prefer using <code><pre>, because I have not seen any browser having
>problems with that. It seems to work everywhere in difference to the
>'leagel' versions stated in the standards.

Well yes, I'd expect it to.

  CODE is a text-level element that sets a monospaced font.
  PRE is a block-level element that sets a monospaced font and makes
  contiguous white space and linebreaks significant.

Having CODE surround PRE isn't legal in HTML.  However, most browsers
generally try to interpret broken HTML as well as they can, instead of
just barfing at the syntax error.  In this case, there are two likely
interpretations:

  a) Assume you meant <CODE></CODE><PRE>, or just ignore the misplaced
  CODE element.  Either way, the result is the same as with just <PRE>,
  which is what you want.

  b) Assume you meant <PRE><CODE>, or assume, as some common browsers
  do, that you wanted the CODE element to have effect on both sides of
  the <PRE>.  (That is known as "tag soup parsing".)  But since a CODE
  element inside PRE is redundant, the result is the same as above.


>I prefer to produce things that _really work_ rather than things that
>_should work_.

I, on the other hand, prefer things that work as they should, rather
than things that just happen to work by coincidence.

In any case, we're talking about different things.  <PRE style="font:
...;"> is an answer to the question "How can I specify the font that my
ASCII art should be displayed in?"  <CODE><PRE> is a non-answer to the
general question "How can I get my ASCII art displayed in any monospaced
font at all?", for which the proper answer is "Just use <PRE>."


>BTW: I have tested <code><pre> in many browsers (Lynx, Netscape, IE,
>Opera, ...) and on many platforms (Windows, Windows NT, Solaris, Linux,
>AIX, ...) without having any problems.

Well, I wouldn't expect any.  I've waved a rubber chicken over several
computers too, some running Linux, some Windows and some MacOS.  And at
least one Amiga.  I've never had any problems with that either.

-- 
 .    _, .. j u s t.  h o w l.i n g   i n  .t h e   n.i g h t .. ._,   .
,    )''        .       /\_    .     '     ,/\   .          ,    ``(  ,
_\__/ |__.'\._______,--;_'_`-.___,.______,/_,_`.__,-.__'__,/`-._,_| \____
 ,_f_)\. Ilmari Karonen  ilt...@sci.fi  http://www.sci.fi/~iltzu/  /(_|_,.

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,3483bd10835621f
X-Google-Attributes: gidf996b,public
X-Google-ArrivalTime: 2001-03-31 06:12:05 PST
Path: supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!64.86.63.5.MISMATCH!nntp1.njy.teleglobe.net!teleglobe.net!news.stealth.net!news.cc.tut.fi!uutiset.saunalahti.fi!not-for-mail
From: Ilmari Karonen <ilt...@sci.invalid>
Newsgroups: alt.ascii-art
Subject: Re: Classic ascii pics
Date: 31 Mar 2001 14:11:13 GMT
Organization: (dis)Order of the Holy Spoon (or whatever)
Lines: 62
Message-ID: <986...@itz.pp.sci.fi>
References: <99l69i$ftc$1...@news.ox.ac.uk> <985...@itz.pp.sci.fi> <99n6ki$3p0$1...@news.ox.ac.uk> <Pin...@mpqgrav2.amp.uni-hannover.de> <aa3...@4ax.com> <99t2dj$chk$1...@news.ox.ac.uk> <3AC...@thanks.com> <3AC...@strong.sjello.nl> <985...@itz.pp.sci.fi> <3AC...@rz.uni-karlsruhe.de>
Reply-To: Ilmari Karonen <use...@itz.pp.sci.fi>
NNTP-Posting-Host: simpukka.saunalahti.fi
X-Trace: tron.sci.fi 986047873 7820 195.74.0.20 (31 Mar 2001 14:11:13 GMT)
X-Complaints-To: new...@saunalahti.fi
NNTP-Posting-Date: 31 Mar 2001 14:11:13 GMT
User-Agent: postit.pl 0.05
Xref: supernews.google.com alt.ascii-art:5041
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 2001 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post