Skip to content

CSS code snippet – How to embed fonts?

@font-face {
  font-family: myFirstFont;
  src: url(sansation_light.woff);

div {
  font-family: myFirstFont;
/*Name the font-family and link the font file in the @font-face rule*/
See also  Python code snippet - How explode by using two columns pandas?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.