Currently my code looks like this
body {
padding: 0px;
margin: 0px;
background-color: #ABA49F;
font-family: Verdana, Geneva, sans-serif
}
.header_bar {
width: 100%;
height: 45px;
z-index: 1000 !important;
box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.506);
height: 22px;
padding: 7px 40px;
background-image: linear-gradient(to top, #212121 9%, #181818 100%);
border-bottom: 2px solid #606060;
}
.header_content {
width: 50%;
margin: left;
}
.header_content li {
list-style: none;
float: left;
font-size: 15px;
}
.title li a {
color: #ffc900 !important;
}
.header_content li a {
text-decoration: none;
color: white;
margin-right: 30px;
}
.header_content a:hover {
color: #ffc900;
}
.sidebar_frame {
z-index: 111;
position:absolute;
top:0;
bottom:0;
left:0;
width:50px;
background:#000;
}
<div class="sidebar_frame">aaaa</div>
<div class="header_bar">
<div class="header_content">
<div class="title">
<li><a href=""><b>Farm</b></a>
</li>
</div>
<li><a href="">New farm</a>
</li>
<li><a href="">aaaa</a>
</li>
<li><a href="">aaaa</a>
</li>
</div>
</div>
I tried to make a sidebar with 100% height. I have no idea why the sidebar without z-index is on top of the menu and also why is there some random scrollable space on the pages horizontal axis?
Removing the sidebar cleans the scrollable space.