Re: IMG in PRE? -Reply

 From: Charles Peyton Taylor <CTaylor@wposmtp.nps.navy.mil>
| 
| Since all spaces and letters in a monospaced font
| are always the same relative size, formatting works
| in <pre>.  Add images, and all is screwed.
| 
| BTW: why not use <TT> instead of pre?  What is it that
| you're looking for in <pre> that you can't do with
| <tt>?
---

Well, PRE seems to control three separate things:
	1. it sets the font to monospaced
	2. it suppresses autofilling of lines
	3. it preserves whitespace as individual characters

TT only controls one of those.  Another mode that would be
extremely useful is
	1. proportional type
	2. no autofilling
	3. preserve whitespace as provided (either by keeping
	as individual space characters or by tabbing to the
	indicated depth)
In addition to the obvious use for poetry, this would be good for
code, for those of us who believe code should be pretty-printed,
rather than monospaced.  One can work around (2), by using BR at
the end of each line, but (3) seems to be impossible [you can get the
effect with incredibly tortuous use of tables as layout devices, but
it's not really practical...].

There are also many instances where including IMG would *not* be
a formatting problem (the obvious one being where IMGs always
appear at the right of text (including the case of appearing on
lines of their own).  

Last time I looked, I don't think CSS1 would handle this, either.

scott

--
scott preece
motorola/mcg urbana design center	1101 e. university, urbana, il   61801
phone:	217-384-8589			  fax:	217-384-8550
internet mail:	preece@urbana.mcd.mot.com

Received on Monday, 13 May 1996 15:21:11 UTC