@include css code example
Example 1: easy way to import cs html
<link rel=“stylesheet” type=“text/css” href=“index.css” />
Example 2: line-height css
line-height: normal;
line-height: 3.5;
line-height: 3em;
line-height: 34%;
line-height: inherit;
line-height: initial;
line-height: unset;
Example 3: how to add a css file in html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Example 4: line-height css
.green {
line-height: 1.1;
border: solid limegreen;
}
.red {
line-height: 1.1em;
border: solid red;
}
h1 {
font-size: 30px;
}
.box {
width: 18em;
display: inline-block;
vertical-align: top;
font-size: 15px;
}
Example 5: how to add css to html
<link rel="stylesheet" href="hi.css">
Example 6: Sass @mixin and @include
@mixin important-text {
color: red;
font-size: 25px;
font-weight: bold;
border: 1px solid blue;
}