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;
Comments
Post a Comment