View Single Post
Old 02-23-2012, 07:54 AM   #10
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Chang View Post
Example:
Code:
.someclass {
   font-size: "20px"; /* works perfectly */
}
.someclass {
   font-family: "Baskerville"; /* works perfectly */
}
.someclass {
   font-family: "Baskerville, Arial"; /* doesn't work */
}
IMHO, the last line doesn't work because you put the closing quote after the second font name. AFAIK, quotes are only required if the font name consists of two or more words. E.g. "Times New Roman".

Code:
font-family: "Baskerville", Arial; /* should work */
However, the quotes around Baskerville are redundant.
Doitsu is offline   Reply With Quote