Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > validation css

Reply
Thread Tools

validation css

 
 
steve
Guest
Posts: n/a
 
      11-29-2003
Hi all

what the validate mean by

a.. Line : 0 font-family: You are encouraged to offer a generic family
as a last alternative


 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      11-29-2003
"steve" <> wrote:


>what the validate mean by
>
>a.. Line : 0 font-family: You are encouraged to offer a generic family
>as a last alternative


When you list a set of fonts, eg
font-family: "My Cool Font", Arial, Helvetica, Verdana;

you are encouraged, but by no means required, to end the list with one
of the generic font families:
serif; sans-serif; monospace; cursive; or fantasy

These do not refer to any particular font but to groups of fonts with
similar properties. In the above example the three real fonts are all
sans-serif fonts so we'll assume that My Cool Font is as well and add
sans-serif to the end of the list:
font-family: "My Cool Font", Arial, Helvetica, Verdana, sans-serif;
Now if a browser doesn't have any of the four named fonts it will use
whatever font it does have access to that does belong to the general
type of sans-serif thus preserving some element of the author's
suggested appearance.

See http://www.w3.org/TR/CSS2/fonts.html...ef-font-family

However there are browser bugs (some older versions of IE sometimes
screw up on serif) and the default choices for some of the families in
some browsers aren't brilliant so whether you choose to follow this
idea or not is up to you.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <> <http://steve.pugh.net/>
 
Reply With Quote
 
 
 
 
steve
Guest
Posts: n/a
 
      11-29-2003
> >what the validate mean by
> >
> >a.. Line : 0 font-family: You are encouraged to offer a generic

family
> >as a last alternative

>
> When you list a set of fonts, eg
> font-family: "My Cool Font", Arial, Helvetica, Verdana;
>
> you are encouraged, but by no means required, to end the list with

one
> of the generic font families:
> serif; sans-serif; monospace; cursive; or fantasy


How do I know which fonts are generic family
Any way this work fine thanks

Thanks


 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      11-29-2003
in post <news:bqb1bl$9b2$>
steve said:

> How do I know which fonts are generic family


you cant know as the user determines the font they want for each family
unless they leave the fonts at the browser defaults and you cant know if
they've done that either.

if you specify (e.g) font-family:cursive; then you get the look you want
but the actual cursive font used is left up to the visitor the font may
or may not be the same as the one you use but it doesn't matter as the
visitor get the font they prefer while you keep the look you want.
(if they have a cursive font specified for the cursive generic family).

--
brucie
30/November/2003 07:30:48 am
 
Reply With Quote
 
nice.guy.nige
Guest
Posts: n/a
 
      11-30-2003
While the city slept, brucie <> feverishly
typed:
> you cant know as the user determines the font they want for each
> family unless they leave the fonts at the browser defaults and you
> cant know if they've done that either.


[...]

Yay, Brucie! Welcome back! You had us worried...

Cheers,
Nige

--
Nigel Moss.

Email address is not valid. . Take the dog out!
http://www.nigenet.org.uk | Boycott E$$O!! http://www.stopesso.com
In the land of the blind, the one-eyed man is very, very busy!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying a Validation Error in a Validation Summary Control Lucas Tam ASP .Net 2 02-26-2004 07:49 PM
ASP.NET Web Forms Validation Controls are Server-Side or Client-Side Validation? Matt ASP .Net 14 01-30-2004 09:15 AM
Web form validation vs object validation Colin Basterfield ASP .Net 1 11-29-2003 12:10 AM
validation summary doesnt display when there's client-side validation Libs ASP .Net 0 06-25-2003 03:05 PM
Re: only custom validation control does server side validation? Colin Mackay ASP .Net 0 06-25-2003 07:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57