I'm using flexbox with overflow auto to make items scrollable in x axis when the screen is small but the problem is that the first items became invisible even when I try to scroll to them.
.ToolsBar {
background-color: #deefe7;
width: 100%;
margin: 30px 0px 0px 0px;
display: flex;
justify-content: space-evenly;
align-items: center;
border-radius: 10px 10px 10px 10px;
white-space: nowrap;
overflow-x: auto;
}
.ToolsBar a {
color: rgba(0, 0, 0, 0.8);
font-size: 15pt;
text-decoration: none;
width: 120px;
text-align: center;
padding: 10px;
font-weight: 900;
white-space: nowrap;
}
.ToolsBar a:focus {
background-color: #c4dacf;
}
.ToolsBarActive {
background-color: #c4dacf;
}
<div class="ToolsBar">
<a href="#" class="ToolsBarActive">Main</a>
<a href="#">Furniture</a>
<a href="#">Decoration</a>
<a href="#">Storage Units</a>
<a href="#">Office</a>
<a href="#">Lighting</a>
<a href="#">Sport</a>
</div>