Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 8 Dec 1999.
Re: Ascii Collection Now On-Line!

Re: Ascii Collection Now On-Line!

Ben Norwood <bdn...@aber.ac.uk> writes:
>
> On Today, CJRandall wrote:
>
> : Ben Norwood writes
> : >
> : >[2] Converting " " to "&nbsp;" is no fun...especially when you're
> : >    text-align=center 'ing it...
> : >
> : [][ hi ... to avoid [2] above .. i do this :-
>
> Yeah, I knew I'd have to get each line to be the same width, but when
> converting spaces to &nbsp;'s (especially on the 4-5 space periods
> between words) it's all too easy to miss one out/add an extra one
> and

Well then, don't convert them! The trick is in the

.....
....<pre>
Here your ASCII art with spaces
</pre>....
.....

bit.

These two tags make the Browser display the exact number of spaces,
instead of concatenating them like it usually does. And they switch to
fixed width font at the same time.


> (btw, if you peek at the code you'll find a 'plain' version commented
> out, using periods instead of spaces - a great reference tool <g>)

Only have an 'plain' version with real spaces. And use <pre></pre>.

See the source of my home page (URL in sig) for an example.


--
Neil Franklin, nei...@franklin.ch.remove http://neil.franklin.ch/

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,cd6717ffd0783c94
X-Google-Attributes: gidf996b,public
From: Neil Franklin <nei...@franklin.ch.remove>
Subject: Re: Ascii Collection Now On-Line!
Date: 1999/12/08
Message-ID: <6u1...@chonsp.franklin.ch>#1/1
X-Deja-AN: 558489518
Sender: nei...@chonsp.franklin.ch
References: <Pine.GSO.4.21.9912080234530.6521-100000@xena> <Ndf...@shieldwolf.demon.co.uk> <Pine.GSO.4.21.9912082036210.14315-100000@xena>
X-Trace: 8 Dec 1999 22:57:04 +0100, dua131221.dialup800-stat.ethz.ch
Organization: My own Private Self
Newsgroups: alt.ascii-art
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 1999 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