Sha256: 4f0c5d6054f34d7340064983075cfc568a861e327705d2722584af222f018e4f
Contents?: true
Size: 900 Bytes
Versions: 49
Compression:
Stored size: 900 Bytes
Contents
# The Montserrat Font Project To use this font as a webfont, ```Montserrat.css``` is included. ## How to use ### 1. @import You can import the file into your stylesheet as follows: ```css @import url("static/fonts/Montserrat/fonts/webfonts/Montserrat.css"); ``` **NOTE:** The directory where the stylesheet is placed. Then we can use it to style elements: ```css body { font-family: 'Montserrat', sans-serif; font-weight: 400; } ``` ### 2. \<link>ing a stylesheet Similarly, you could link to the same asset as you would any other CSS filter, in the \<head> of the HTML document rather than in the CSS: ```html <link rel="stylesheet" type="text/css" href="static/fonts/Montserrat/fonts/webfonts/Montserrat.css"> ``` **NOTE:** The directory where the stylesheet is placed. Then we can use it to style elements: ```css body { font-family: 'Montserrat', sans-serif; font-weight: 400; } ```
Version data entries
49 entries across 49 versions & 1 rubygems