Seeking assistance with a div issue.
I have an inner div that needs to extend beyond an outer div, which is not a problem. However, I am struggling to make the outer div clip where the inner div extends. The challenge is that both divs need to be transparent.
Check out the image below for a visual representation of what I am trying to achieve:
View inner and outer div image
Here is my current progress:
CSS:
.infoBoxOuter {
border: 10px solid #ffffff;
padding: 50px;
width: 300px;
}
.infoBoxInner {
width: 350px;
}
HTML:
<div class="infoBoxOuter">
<div class="infoBoxInner">
<h1 class="white">Lorem Ipsum dolor</h1>
</div>
</div>
Any assistance on this matter would be greatly appreciated. Thank you in advance.