I am having an issue with styling a sidebar using HTML and CSS. The problem I am facing is with setting the background-color property. Despite my efforts to customize the style, the background remains transparent and shows the color of the page beneath it.
.sidebar {
height: 100%;
width: 250px;
position: fixed;
z-index: 7;
top: 0;
left: 0: background-color: blue;
overflow: auto;
padding-top: 350px
}
<div id="mySidenav" class="sidebar">
<a href="#">Barber</a>
<a href="#">Massage</a>
<a href="#">Nails</a>
</div>
Could the inclusion of Bootstrap CSS be causing this issue? I need help figuring out why this is happening.