how to import css code example

Example 1: import css

<link rel="stylesheet" type="text/css" href="style.css">

Example 2: how to include one css file in another

@import url("base.css");

Example 3: easy way to import cs html

<link rel=“stylesheet” type=“text/css” href=“index.css” />

Example 4: import css in another css file

@import "navigation.css"; /* Via string */

or

@import url("navigation.css"); /* Via url */

Example 5: @import css

@import "navigation.css"; /* Using a string */
or
@import url("navigation.css"); /* Using a url */

Tags:

Css Example