They _were_ in the HTML spec, but have been deprecated in 4.0:

"The deprecated WIDTH attribute of PRE tells the browser the expected line
length of the preformatted block so that a suitable font size or margin can
be used. Browsers ignore this attribute in practice."

Nice though - would have been useful.

J.

> -----Original Message-----
> From: Matt Sergeant [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 24 December 2001 2:02 pm
> To: [EMAIL PROTECTED]
> Subject: Re: Forrest (a.k.a. xml.apache.org 2.0)
>
>
> On Sun, 23 Dec 2001, Stefano Mazzocchi wrote:
>
> > > Is <pre> the only possibility for displaying source code?
> >
> > Well, we need a monospaced font or you can say goodbye to your nice
> > indentation. And tell me how we can have xml and java examples without
> > respected indentation.
> >
> > If you have suggestions, I'm wide open.
>
> FWIW, I use <pre width="80" cols="80"> on some sites. Seems to take care
> of wrapping quite neatly, although I don't think those attributes are in
> the HTML spec.
>
> --
> <!-- Matt -->
> <:->Get a smart net</:->
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to