Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create smooth headlines with HTML and CSS?

I saw a lot of web pages recently, that have very smooth headlines, like this website for example: http://boagworld.com/

How do they go about to do that? Are there any hidden clues?

At one point I heard from a technique where they used Flash (I think) to embed custom fonts onto a website and then replace normal headlines with this flash alternative.

What other ways are there besides flash?

like image 600
Sebastian Hoitz Avatar asked Feb 22 '10 22:02

Sebastian Hoitz


3 Answers

Assuming you don't want to use images as text replacement, there are several techniques, that adapt font enhancement in very unobtrusive way:

  • using flash - SIFR
  • pure css = @font-face and directly embed fonts in ttf or otf
  • javascript enhancement technique, the script is called Cufon

Personally I like to use web safe fonts with combination of less known and do proper fallback

like image 166
Juraj Blahunka Avatar answered Sep 18 '22 23:09

Juraj Blahunka


They're just using images as the CSS background for certain things, in this case:

http://boagworld.com/wp-content/themes/BoagworldV2/images/logo.gif

You can do whatever you want with a few images and css, something like:

#header { background: #FFFFFF url(myLogoImg.png) center no-repeat; }
like image 40
Nick Craver Avatar answered Sep 20 '22 23:09

Nick Craver


If you don't want to use image replacement or sIFR, but want custom fonts, you should take a look at TypeKit - http://typekit.com/. They let you call custom fonts (that they have licensed to you) directly from your style sheet with font-family, and use javascript embedded on your page to serve the fonts from their servers. I'm using it their service on a project right now and so far it seems to work well. They don't have a huge library of fonts available yet, but it's still bigger than Arial, Verdana, Georgia and Times New Roman.

like image 23
nickfrench Avatar answered Sep 20 '22 23:09

nickfrench