Im new to Web Development and im trying to make a simple HTML site with minor css styling and a bit of PHP , im currently facing a problem with using CSS after using float: left on a div
.mid-bar {
background-color: red;
}
.mid-bar li {
float: left;
list-style-type: none;
margin-right: 5px;
padding: 5px 2px;
}
<div class="mid-bar">
<ul>
<li>Hello There !</li>
</ul>
</div>
This one DOES float to the left , but the background doesnt change
Any help would be appreciated
Thanks!