I'm trying to create a div
with some content that should scroll in the x direction like the image but I want its scrollbar to be hidden here is my code
I also try commented ways in the code below but didn't work.
<style>
main{
width:500px
}
.company{
/* overflow-x: scroll; */
width:800px;
overflow-x: auto;
display: flex;
gap: 12px;
font-weight: 600;
font-size: 16px;
}
/*.scrollable-company::-webkit-scrollbar{
display: none;
} */
</style>
<main>
<section class="company">
<button class="btn-company active">All</button>
<button class="btn-company ">Nike</button>
<button class="btn-company ">Adidas</button>
<button class="btn-company ">Asics</button>
<button class="btn-company ">Reebok</button>
<button class="btn-company ">New Ba..</button>
<button class="btn-company ">Converse</button>
</section>
</main>