View previous topic :: View next topic |
Author |
Message |
loodi.sale
Joined: 15 Feb 2006 Posts: 99
|
Posted: 15.11.2006 17:52 Post subject: css validation warnings- fontovi... |
|
|
dakle CSS validan ali izbaci dosta upozorenja koja sam ja skontao ali ne totalno.. dakle dobijem ovo:
# Line : 1 font-family: You are encouraged to offer a generic family as a last alternative
# Line : 1 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : h1
# Line : 3 font-family: You are encouraged to offer a generic family as a last alternative
# Line : 3 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : h2
# Line : 5 font-family: You are encouraged to offer a generic family as a last alternative
# Line : 5 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : h3
# Line : 7 font-family: You are encouraged to offer a generic family as a last alternative
# Line : 7 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : h4
# Line : 10 font-family: You are encouraged to offer a generic family as a last alternative
# Line : 10 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : h5
# Line : 13 font-family: You are encouraged to offer a generic family as a last alternative
# Line : 13 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : h6
# Line : 15 font-family: You are encouraged to offer a generic family as a last alternative
# Line : 15 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : p
CSS fajl za to izgleda ovako:
h1 {font: small-caps 900 13px arial;}
h2 {font: 15px arial}
h3 {font: 17px georgia;}
h4 {font: small-caps 900 15px georgia;
margin-left:100px;}
h5 {font: 18px georgia;
margin-left:100px;}
h6 {font: 12px georgia}
p {font: 15px georgia;
margin-left:0em;
margin-right:0em;}
--------------------------------------------------------
Jeli ima neki bolji način da se ovo sredi... ako neko moze da napise bio bih jako zahvalan!
Skontao sam gore da treba dodati i nazive porodice fontova ono kao da se mogu koristiti mjesto navedenog ako nije pristuan ali nisam skontao kako to da napisem u CSS fajl.. pa ko zna nek me prosvijetli...
unaprijed hvala |
|
|
Back to top |
|
|
Sulien
Joined: 04 Jan 2004 Posts: 2905 Location: Zagreb
|
Posted: 15.11.2006 19:09 Post subject: |
|
|
nakon arial stavi "sans-serif", nakon georgia "serif"
neće te boljeti ni da pogledaš u specifikacije ako si toliki validation freak |
|
|
Back to top |
|
|
loodi.sale
Joined: 15 Feb 2006 Posts: 99
|
Posted: 15.11.2006 19:32 Post subject: |
|
|
Sulien wrote: | nakon arial stavi "sans-serif", nakon georgia "serif"
neće te boljeti ni da pogledaš u specifikacije ako si toliki validation freak |
ZAHVALJUJEM! ma ja sam stavljao to ali ispred.. a treba nakon |
|
|
Back to top |
|
|
Sulien
Joined: 04 Jan 2004 Posts: 2905 Location: Zagreb
|
Posted: 15.11.2006 22:55 Post subject: |
|
|
user agent čita s lijeva na desno... ako ne pronađe niti jedan font onda trebaš imati fallback na generic family (npr. "serif") da bi onda program izabrao default font za taj family |
|
|
Back to top |
|
|
|