I've been struggling to implement a horizontal scroll for a DIV on my site, but none of the common solutions like overflow-x
or white-space:nowrap
are working for me.
This is the section of my website where I need a horizontal scroll bar
If you want to see what I mean, check out my code below (I included extra CSS for clarity) or visit the site here.
.sidebar {
background-color: #ececec;
width: 3000px;
/*overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;*/
}
.wallet {
background-color: #7b67db;
background-image: linear-gradient(120deg, #7b67db 0%, #ab8afb 50%, #FFFFFF 100%);
width: 90%;
border-radius: 10px;
-webkit-box-shadow: 0px 0px 9px 1px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 0px 9px 1px rgba(0, 0, 0, 0.1);
box-shadow: 0px 0px 9px 1px rgba(0, 0, 0, 0.1);
height: 167px;
widows: 90%;
margin: 0 auto;
}
.wallet-body {
background-color: #fff;
border-radius: 0 10px 10px 0;
}
.raise {
font-size: 0.8em;
color: #b8b8b8;
...
</html>