css - Installed fonts in Grails not working -


i want use font open sans on grails project, placed fonts in web-app directory under 'fonts' folder. afterwards, added css:

body{     background-color: #ffffff;     font-family: 'opensans', arial, sans-serif;     font-size: 14px; } 

but still won't work. initially, used link href google fonts , placed in of main.gsp... didn't work.

add following view or layout

<link href='http://fonts.googleapis.com/css?family=open+sans' rel='stylesheet' type='text/css'> 

the google fonts api generate necessary browser-specific css use fonts. need add font name css styles. example:

font-family: 'open sans', sans-serif; 

ref:- font not applied in web application


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -