Font-weight explicitly

Home Forums Use Any Fonts Font-weight explicitly

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #418703
    THE-MZ
    Guest

    Back when we used @font-face, we add the font-weight inside to tell the browser that the font is the bold-variant. For example:

    @font-face {
    src: local( TheSansBlack ), url( ../fonts/TheSans_TT9_.woff ) format( ‘woff’ );
    font-family: TheSansBlack;
    font-weight: bold;
    }

    then the following will pick the bold font automatically:

    .menu-optional .cart-total {
    font-weight: 600;
    }

    How do I assign all bold elements to use by bold font and the rest use my regular font without adding each one of them to the list?

Viewing 1 post (of 1 total)
  • The topic ‘Font-weight explicitly’ is closed to new replies.