Skip to content

Instantly share code, notes, and snippets.

@carlosrojaso
Created May 12, 2014 19:15
Show Gist options
  • Save carlosrojaso/4d8adb2366844856918f to your computer and use it in GitHub Desktop.
Save carlosrojaso/4d8adb2366844856918f to your computer and use it in GitHub Desktop.
CSS3 Web Fonts
<!DOCTYPE html>
<html>
<head>
<style>
@font-face
{
font-family: myFirstFont;
src: url(sansation_light.woff);
}
div
{
font-family:myFirstFont;
}
</style>
</head>
<body>
<div>
With CSS3, websites can finally use fonts other than the pre-selected "web-safe" fonts.
</div>
<p><b>Note:</b> Internet Explorer 8 and earlier, do not support the @font-face rule.</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment