Using google web font for my site.

I was looking for a better font for my blog. My search ended with Droid Sans. This particular font is one among the many fonts that are available as part of Google Web Fonts project. How do I use this inside HTML? Just add the following line under the <head> tag.

<link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans:bold|Droid+Sans+Mono" />

Then in your CSS definition use Droid Sans and Droid Sans Mono as required. For example I have something like this.

body, input, textarea {
                        color: #444;
                        font: 14px "Droid Sans", arial, helvetica, sans-serif;
                        line-height: 1.5em;
}

This font looks really great. I like it.

This entry was posted in blog and tagged , , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>