Search
 
SCRIPT & CODE EXAMPLE
 

CSS

add google font

CSS
@import url(https://fonts.googleapis.com/css?family=Roboto);

HTML
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto"/>

body{
  font-family: "Roboto";
}
Comment

how to import google font

<!-- To Add Montserrat font or any font as such -->
<!-- Go to https://fonts.google.com browse the font you like here, Montserrat-->
<!-- On the right click embbed and get the link similar to one given below-->
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
<!-- add this ^ link inside your <head> tag i.e. before </head> -->
<!-- In css you can specify the font family as -->
font-family: "Montserrat", sans-serif;
Comment

google font import

<!-- To import google font add this to the head of your HTML then you can use use the imported font family in your CSS file -->

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet"> 
Comment

PREVIOUS NEXT
Code Example
Css :: transparent input box 
Css :: remove color and underline from link css 
Css :: css visibility 
Css :: css cursor pointer hover 
Css :: css last 3 childs 
Css :: restrict a paragraph height css 
Css :: css image filter black and white 
Css :: css smooth transition in and out 
Css :: change input border color when selected 
Css :: css blur text 
Css :: slide up and down animation css 
Css :: css ecken abrunden 
Css :: how to change style based on screen size 
Css :: JS make text not highlightable 
Css :: html align text anchor 
Css :: tailwind backdrop 
Css :: flex center 
Css :: css border top 
Css :: how to make white image black in css 
Css :: removing the unwanted border button css 
Css :: cdd first child 
Css :: css p tag text wrap 
Css :: how to make image not repeat on background 
Css :: slickjs height 
Css :: rgba white color 
Css :: css display none transition 
Css :: hidden elements blinking on hover 
Css :: josh comeau css reset 
Css :: how to remove margin of body 
Css :: centrer verticalement css 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =