I'm facing an issue with a div setup like this:
https://i.sstatic.net/4nuyO.png
My goal is to remove a specific section of the circle shape displayed below:
https://i.sstatic.net/09IWX.png
The desired outcome is to achieve a final shape similar to this:
https://i.sstatic.net/qMkev.png
To achieve this, I've decided to set the image as the background of my div.
<div class="col-4 customBack">
<div class="mainInfo">
<div class="circle2">
<img src="https://sitename.com/images/image.png">
</div>
<div class="paraDivRight2">
<h6 style="margin-top:5px;"><strong>Lorem Ipsum Dolor Simit</strong></h6>
<hr style="margin-top:-5px;">
<p style="margin-top:-10px;">012-3456789</p>
<p style="padding-top:5px;"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="137a757d7c53607a67767d72637c7e">[email protected]</a></p>
</div>
</div>
</div>
Below are the corresponding styles:
.mainInfo{
background-color: #fff;
border: .01rem round #e0e1ed;
border-radius: 20px;
color: #585CA1;
width:100%;
height:5em;
box-shadow: 0px 0px 17px -5px rgba(0,0,0,0.75);
margin-top: 3em;
display: flex;
align-items: center;
justify-content: center;
}
.customBack{
background-image: url("/img/shadow3.png") !important;
}
.circle2 {
position: relative;
left:-60%;
width: 9em;
height: 9em;
background: #fff;
border-radius: 50%;
box-shadow: 0px 0px 17px -5px rgba(0,0,0,0.65);
}
.circle2 img {
position: absolute;
max-width: 85%;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 100;
}
.paraDivRight2 {
position: absolute;
display: inline-block;
padding: 10px;
color:black;
top:0px !important;
padding-top:50px !important;
right: 20px;
text-align: right;
padding-right:50px !important;
}
.paraDivRight2 p {
line-height: 1em;
font-size: 10pt;
margin: 0;
letter-spacing: 1px;
}
Although I've added the background in the .customBack
class, the resulting display shows an unintended overlap:
https://i.sstatic.net/pB18c.png
How can I effectively position the background image (shadow3.png
) as the background of the mainInfo
div without the unwanted section of the circle shape appearing?
I'm struggling with this, any assistance would be greatly appreciated...