html - Font coming out as Times New Roman in Older Browsers -


older browsers don't seem compute following css:

 .text {     font: normal 10px arial;  } 

when @ page in older browsers, text comes out times new roman.

what best way declare font family , size recognized widest possible audience?

now i'm not expert myself, font-family: attribute can declare s many fonts want (ie font-family: arial, 'times new roman', sans-serif; ) browser can go through list 1 one see if can run it. if not it'll go the next item on list. far fonts run on majority of browsers not same, main reason why put several fonts backup. can import other font styles web site. google fonts , example, provides wide range of styles can use. google font's provide link code import code. regarding older browsers don't know if feature works newer versions (since haven't had issue myself). 2 styles default no matter what, know of, sans-serif , serif. size text use font-size: attribute. feature can use percentages (text 2x size of normal @ 200%) , can use value sizes (15px , 2em, etc) expands more on here

hope answers question.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -