Currently, I am facing an issue with a div that needs to be wider than the viewport width in order to achieve the desired effect. However, I do not want this div to extend beyond the right side of the screen and cause a horizontal scroll bar to appear. Despite trying both overflow: hidden;
and overflow-x: hidden;
, the problem persists.
CSS
.stripe {
height: 500px;
width: 150vw;
top: 350px;
margin-left: -30vw;
position: absolute;
background-color: #4775de;
transform: rotate(6.2deg);
z-index: -1;
}
HTML
<div styleName='hero'>
<div>
<div styleName="stripe"/>
</div>
<div className="container" styleName="divide-container">
<div styleName="upper-wrapper" >
</div>
<div styleName="lower-wrapper" >
<MainButtonRow/>
</div>
</div>
</div>