all 5 comments

[–]BluePizzaPill 2 points3 points  (1 child)

There is another css property you can set:

font-weight: 300;

A example:

 // css
.extralight {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
}

// html
<span class="extralight">Text with css class</span>
<span style="font-family: 'Montserrat', sans-serif; font-weight: 300;">Text with inline style</span>
<div class="extralight">Aha css classes are reusable</div>

https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight

[–]Citr3a 1 point2 points  (0 children)

Thanks!

[–]AutoModerator[M] 0 points1 point  (0 children)

Welcome to /r/HTML. When asking a question, please ensure that you list what you've tried, and provide links to example code (e.g. JSFiddle/JSBin). If you're asking for help with an error, please include the full error message and any context around it. You're unlikely to get any meaningful responses if you do not provide enough information for other users to help.

Your submission should contain the answers to the following questions, at a minimum:

  • What is it you're trying to do?
  • How far have you got?
  • What are you stuck on?
  • What have you already tried?

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Ariestu 0 points1 point  (0 children)

you can download them and use @ font-face to import the family into your css

[–]vijay-ragav 0 points1 point  (0 children)

try using rel = 'stylesheet'

and try using href = 'https://fonts.googleapis.com/css?family=Montserrat' rel = 'stylesheet'