My goal is to achieve this desired outcome:
https://i.sstatic.net/4eTpE.png
Currently, I have the following (focusing only on the left element for now):
https://i.sstatic.net/nUFp1.png
I am struggling to make the left arrow transparent and I can't seem to figure out how.
This is the CSS Code I have so far:
.main_container .photo_container .mask a {
color: #FFFFFF;
font-size: 25px;
position: relative;
}
.main_container .photo_container .mask a:first-child {
border: 1px solid #FFFFFF;
padding: 5px 11px 7px;
}
.main_container .photo_container .mask a:first-child::before {
border-bottom: 7px solid transparent;
border-right: 7px solid rgba(0, 0, 0, 0.2);
border-top: 7px solid transparent;
content: "";
display: inline-block;
left: -8px;
position: absolute;
top: 20px;
}
.main_container .photo_container .mask a:first-child::after {
border-bottom: 24px solid transparent;
border-right: 25px solid #eee;
border-top: 24px solid transparent;
content: "";
display: inline-block;
left: -26px;
position: absolute;
top: -1px;
}
This is the corresponding HTML Code:
<div class="photo_container">
<img src="images/placeholder/car1.png" class="img-responsive" alt="" />
<div class="mask">
<a href=""><i class="fa fa-search"></i></a>
<a href=""><i class="fa fa-link"></i></a>
</div>
</div>
Any assistance would be greatly appreciated!