[Prev][Next][Index][Thread]

Re: 'Poetry' Element



Eve Maler:
> I've always been surprised that HTML has only one overloaded PRE
> element for both code listings and "real text."  Many DTDs I've
> worked with have an escape-hatch element that retains all spaces
> and line breaks on output, but keeps the text in proportional font.
> It's even often documented facetiously as "the 'poetry' element."

<STYLE TYPE="text/css">
PRE.poetry {font-family: serif}
</STYLE>

<PRE CLASS=poetry>
Let us go then, you and I
while the night is laid out against the sky
like a
					smear of mustard on an old pork pie
</PRE>

Steven Pemberton, CWI, Amsterdam; Steven.Pemberton@cwi.nl


References: