|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS Generic Font
I'm getting a warning when validating a stylesheet, and I can't figure out why.
The sheet validates, but it gives one warning that says: Quote:
What confuses me is that I already have. Code:
font-family : Tahoma, Arial, sans-serif; On the w3 site they list sans-serif as a generic font. I've never had a problem using it before. Am I missing something? Here's my stylesheet: http://www.columbiamistalpacas.com/..._stylesheet.css And a link to the w3 validation results http://jigsaw.w3.org/css-validator/...istalpacas.com/ |
|
#2
|
||||
|
||||
|
In your style sheet is should be somethng like this:
Code:
font: normal 0.8em "Tahoma", Arial, sans-serif; HTH
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ |
|
#3
|
|||
|
|||
|
Why? What's the difference and what does the normal 0.8em mean? Emphasis? 8 tenths of bold?
|
|
#4
|
||||
|
||||
|
font-family is depreciated..
em is a font size..http://www.google.com/url?sa=U&star...nts.html&e=7417 |
|
#5
|
||||
|
||||
|
Quote:
where did you read that? font-family is still in css2.1 http://www.w3.org/TR/CSS21/fonts.html#font-family-prop |
|
#6
|
||||
|
||||
|
Oops, I thought you weren't supposed to use it
![]() |
|
#7
|
|||
|
|||
|
I've tried different variations, changed the fonts specified to: Verdana, Arial, Helvetica, sans-serif (lifted from another stylesheet that validates)
Added quotes, added sizes. And still the same warning. What am I missing here? |
|
#8
|
||||
|
||||
|
Code:
#LeftMenu a {
....
font-family:Arial;
....
}
you haven't supplied with a generic class here, just add sans-serif after arial. |
|
#9
|
|||
|
|||
|
Thanks. That did it.
Makes sense, it was just throwing me off because it was referencing the Body |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS Generic Font |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|