Re: Prefomated Text
by "Total Web Works" <TotalWebWorks(at)cox.net>
|
Date: |
Mon, 8 Jul 2002 20:24:11 -0500 |
To: |
"Matthew Ohlman" <matthew(at)ohlman.com>, "*HWG- Basics" <hwg-basics(at)hwg.org> |
References: |
ohlman ohlman2 |
|
todo: View
Thread,
Original
|
|
>From the CSS Class I'm taking, I think it needs to the sans-serif (total of
3 S's)
Debra Myers
Total Web Works
Need a website? Check Out:
http://www.totalwebworks.com
Disclaimer: Any errors in spelling, tact, or fact are transmission errors.
All out going Mail is Virus Scanned by Norton Antivirus 2002.
----- Original Message -----
From: "Matthew Ohlman" <matthew(at)ohlman.com>
To: "Andrew McFarland" <aamcf(at)aamcf.co.uk>
Cc: <HWG-basics(at)hwg.org>
Sent: Monday, July 08, 2002 3:52 PM
Subject: Re: Prefomated Text
OK. Another problem. I used CSS (like Andrew said below), but when I use
the CSS validator on W3C, it says this:
Line : 39 font-family: You are encouraged to offer a generic family as a
last alternative
what does this mean? I have the code letter for letter as below (except the
size), and I can't figure out what is wrong!
Here is the code I have:
>pre {
> font-family: arial, san-serif;
> font-size: 100%
>}
Any help would be greatly appreciated.
Matthew
| 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."
At 10:39 AM 7/7/02 +0100, you 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 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/
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA