I have horizontal scrolling container, that contains child´s with background-color. I tried to add shadow but its not working for ovarlay child background. Z-index didn't help me in this case.
There is any way to achieve this?
.container {
overflow-x: auto;
background-image: linear-gradient(to right,white,white),linear-gradient(to right,white,white), linear-gradient(to right,rgba(0,0,0,0.25),rgba(255,255,255,0)), linear-gradient(to left,rgba(0,0,0,0.25),rgba(255,255,255,0));
background-position: left center,right center,left center,right center;
background-repeat: no-repeat;
background-color: white;
background-size: 20px 100%,20px 100%,20px 100%,20px 100%;
background-attachment: local,local,scroll,scroll;
}
.tag {
display: inline-flex;
align-items: center;
padding: 0 var(--theme-padding-sm);
border-radius: var(--theme-radius);
justify-content: center;
width: var(--theme-width-md);;
height: var(--theme-height-md);
background: var(--topic-tag-background);
border: 2px solid transparent;
}
<div class="container">
<a>
<div class="tag-container">
<div class="tag">
<span>BO</span>
</div>
</div>
</a>
</div>
