Essex web design klever media

Read about my daily goings on in the web design industry

this includes web design tips & tricks, and my current work.

Replace your web images with @font-face

Replace your web images with @font-face Replace your web images with @font-face // Essex web design

Replace your web images with @font-face

25 February 2011 // Posted by Lee Grant

@font-face is an extremely useful css rule which allows you to use non-standard fonts on your website to replace the use of title images and graphics. There are a lot of benefits using @font-face over images and graphics, like reducing page loading times & saving bandwidth.

The great thing about using @font-face is just how easy it is to implement it. All it take is you to place your chosen font into your website directory and add the following css rules to your stylesheet.

@font-face { font-family: Delicious; src: url('Delicious-Roman.otf'); }
@font-face { font-family: Delicious; font-weight: bold; src: url('Delicious-Bold.otf'); }

And to apply it to your title's simply use the following.

h1, h2 { font-family: Delicious, sans-serif; }

It's as simple as that, 3 lines of css and you can start replacing your images with pure css and html. You can download more fonts at Font Squirrel, they offer a download service specially for @font-face which allows you to download a kit, be sure to check that out.

Keep in ind that font's are licensed just like images, so you'll need to make sure that if you're using a font commercially that it comes with the license.

2 comments

Comment quotes

Posted by Nike Air Max 1 ND 1 year ago

I am very happy to find this blog.Thanks for creating the page! Im positive that it will be very popular. It has good and valuable content which is very rare these days.
curt

Comment quotes
Comment quotes

Posted by Alex D 1 year ago

I've been struggling to get @font-face to work in ie, this seemed to sort it and thanks for the font squirrel resource that was very useful.

Comment quotes

RSS feed for comments on this page | RSS feed for all comments

Post your comment

Essex web designer

Lee Grant

Web designer & developer
Essex, UK

My name's Lee, I'm 23 years young and a full time web designer/developer living and working in the Essex (England) area.

As you might have guessed I have an interest in the web and how it works. On my blog you'll find things like my latest work, design & coding tips and hints as well as tutorials and freebies. To keep up to date with my work you can follow me on some social design websites below or subscribe to my rss feed.

Close profile window