css as a better <pre> replacement

David A. Bandel david
Mon May 17 11:28:49 PDT 2004


On Sat, 23 Mar 2002 08:29:54 +0800
begin  "M.W.Chang" <linuxism at yahoo.com> spewed forth:

> <pre>, <xmp> and <plaintext>: they are either deprecated, or required
> the use of character entity &lt; and &gt;.
> 
> After talking to a modern generation of web programmer, this is what I
> learnt about using the best replacement for them. I would resubmit my
> stuffs.
> 
> #All documents should have this in the <head> section.
> <style type="text/css">
> div.escape
> {
>         -moz-binding : url(preformatted-text.xml#preformat);
>         behavior : url(preformatted-text.htc);
> }
> </style>
> 
> #then use this to replace the <pre> tags in the <body> section
> <div class="escape">
> <b>What do you think?</b>
> </div>>
> 

Umm. Why are you using div?  You writing a book?  This has got to be the
most superfluous, overused tag I've seen.  Forget div.

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
		-- Nemesis Racing Team motto



More information about the Linux-users mailing list