Answers for "css install font family"

CSS
0

import font css from url

@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
/*Use that for importing font via link*/
Posted by: Guest on July-08-2021
-1

how to use font family locally

<style>
@font-face {
    font-family: "myFirstFont";
    src: url("C:/Users/Desktop/Website/fonts/Harlow_Solid_Italic.ttf");
}

.harlow {
    font-family: "myFirstFont";
}
</style>
Posted by: Guest on November-23-2021

Browse Popular Code Answers by Language