css as a better <pre> replacement

Net Llama beemer9
Mon May 17 11:28:49 PDT 2004


--- "David A. Bandel" <david at pananix.com> wrote:
> 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.

Indeed.  Never have I seen <DIV> used so much as when M$ products insert
it into the bastardized version of HTML that they create.

=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J. Friedman                     netllama at linux-sxs.org

Linux Step-by-step help:           http://netllama.ipfox.com

                                                 .

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/



More information about the Linux-users mailing list