Quote:
Originally Posted by Moonraker
Why does my WC3 validation for stylesheet give me the following errors?:
5 Property src doesn't exist : url('../Fonts/alkaios-regular.ttf')
13 .alkaios Property src doesn't exist : url('../Fonts/alkaios-regular.ttf')
but the font displays correctly in Desktop Adobe Digital Editions.
I want to use this font for some Romanian characters.
The code in my css sheet is:
@font-face {
font-family: "alkaios";
font-weight: normal;
font-style: normal;
src: url('../Fonts/alkaios-regular.ttf');
}
.alkaios {
font-family: "alkaios";
font-weight: normal;
font-style: normal;
src: url('../Fonts/alkaios-regular.ttf');
}
The @fontface declaration is the first in the CSS stylesheet.
I have been hours trying to figure this out.
|
I think the error message is due to a bad definition of the class .alkaios. Try with this definition:
.alkaios {
font-family: "alkaios";
font-weight: normal;
font-style: normal;
}
You don't have to include (in that class) "src: url('../Fonts/alkaios-regular.ttf');". That is because "src" is not a valid property for a class (is a valid property for a @font definition).