Hey can anyone fill me in on how to add fonts to HTML classes? I was watching a tutorial and that part skipped and I'm confused exactly what he did. There was a box class with different elements in it and he was trying to add font styling before it skipped.
This is the HTML and CSS, excluding the <head>
and <body>
tags:
.body {
Background-color: red;
}
.box {
Width: 174px;
Height: 250px;
Background: yellow;
Width: 25px Padding:20px;
}
.true {
Background-color: brown;
}
.true2 {
Background-color: green
}
<Div class="box true"> this is an example</Div>
<Div class="box true2> parenthesis</Div>