Working with imports, fonts, and URLs

You can import one CSS from another using the @import keyword:

@import "style.css";
@import url("http://some-site/style.css");

Note the url keyword here. You can refer to web resources for things such as cursors or fonts using this keyword.

Talking about fonts, you can use CSS @font-face to declare a font in CSS:

    @font-face {
font-family: 'myFont';
font-style: normal;
font-weight: normal;
src: url('myfont.ttf');
}

Here, font-family denotes a name you can now use in CSS or Java code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.249.174