Saturday, 15 February 2014

css - Is putting !important on @font-face is valid? -


I have a problem that I want the user to use web fonts instead of the fonts installed on their computer Because they are both slightly different formatting, I ! Significant , but I'm not sure and when I try, I can not find if it's working or not. Anyone can please tell me how to use Important on @ font-face ? Is it valid or not?

Then something like this:

CSS

  @ font-faces {font-family: 'custom-font'; Src: url ('custom-font.eot'); Src: url format ('custom-font.eot? # Formix') format ('embedded-oppent'), url format ('custom-font.woff') ('woff'), url ('custom-font.ttf' ) Format ('truetype'), url ('custom-font.svg # custom') format ('SVG'); Font weight: normal; Font style: normal; } P {font-family: 'custom-font', aerial, non-serif; }   

HTML

  & lt; P & gt; Your text goes here & lt; / P & gt;    

No comments:

Post a Comment