Created
May 12, 2014 19:15
-
-
Save carlosrojaso/4d8adb2366844856918f to your computer and use it in GitHub Desktop.
CSS3 Web Fonts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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