Hi everyone, I've been trying to set a background color in a div tag but for some reason it's not working. I suspect there might be a floating element causing the issue within my div, but I'm not sure how to resolve it.
Here is the HTML code:
<div id='footer'>
<h5>©Krish International Inc.
</h5>
</div>
And here is the CSS code:
#footer {
background-color: deepskyblue;
}
h5 {
font-weight: normal;
position: absolute;
width: 100%;
text-align: center;
font-size: 30px;
font-family: 'hind';
}
@font-face {
font-family: 'hind';
src: url('C:/Users/lakes/Desktop/hind2.ttf');
}