Re: Prefomated Text

by Matthew Ohlman <matthew(at)ohlman.com>

 Date:  Sun, 07 Jul 2002 20:28:42 -0500
 To:  HWG-basics(at)hwg.org
 References:  ohlman
  todo: View Thread, Original
Hi everyone. Thanks so much! I was trying to use CSS, but not like that. 
Thanks again to everyone who responded!

Matthew



At 10:39 AM 7/7/02 +0100, Andrew McFarland wrote:
>At 20:49 06/07/02 -0500, Matthew Ohlman wrote:
>>Hi list. I myself am having a validation problem. If I understand the 
>>validator correctly, I can't use a font tag in a <.pre> tag.
>
>That is correct.
>
>http://aamcf.co.uk/html/ has reference material on all XHTML 1.0 elements, 
>showing which elements can contain what. It's produced automatically from 
>the DTDs and I find it is a useful reference.
>
>>So is there any way to control the text size and color within a pre tag? 
>>Or, is it better just to use the &nbsp; deal.
>
>Well, you shouldn't be using the font element any more. Use CSS. Rules like
>
>pre {
>         font-family: arial, san-serif;
>         font-size: 200%
>}
>
>should do what you want.
>
>Andrew
>
>--
>http://aamcf.co.uk/


| Matthew Ohlman
| Ohlman Pages
| http://www.ohlman.com/
"The most overlooked advantage to owning a computer is that if they foul up 
there's no law against wacking them around a little."

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA