pls can someone explain to me how to use an online font in your website
Tamiliniyan S
@iniyan-webAll comments
- @adeosunabdulsamadSubmitted almost 3 years ago@iniyan-webPosted almost 3 years ago
Hi Abdulsamad,
You can add required fonts from google fonts.
-> In html, you can link the fonts like below:
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2? family=Montserrat:wght@700&display=swap" rel="stylesheet" />
-> In CSS, you can import fonts like below:
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
For above both cases, you can use the font added like below.
In CSS:
body { font-family: "Montserrat", sans-serif; }
Marked as helpful0 - @ItsjosesSubmitted about 3 years ago
how to blue my background in the back? cause in the template they have blue background and any tips to improve my skills and web? thank you :v
@iniyan-webPosted about 3 years agoHi...you need to add background-color property to the body of your site in order to change it to your respective color, and regarding your site and skill, it is nice and in order to increase it further you can do your own research and practices.
Marked as helpful1 - @codeekta28Submitted about 3 years ago
Can anybody please help me how i set the background exactly like in preview, I noticed those two circles in background are placed diagonally but how?
@iniyan-webPosted about 3 years agoUse absolute positioning to set the images diagonally.. Please refer the given link... stylesheet_link
.bg-top { position: absolute; z-index: -1; top: -85%; left: -25%; }
.bg-bottom { position: absolute; z-index: -1; top: 43%; right: -22%; }
Marked as helpful0