<div class="row">
<div class="col s12 l4">
<div class="card">
<div class="card-image" style="position:relative; overflow:hidden;height: 300px;width: 418px;">
<img src="assets/img/jonatan-pie-415847.jpg" style="height: 300px;width: 418px;">
<div style="content:'';
position: absolute;
left: 309px;
top: 206px;
z-index: 1;
border-radius: 100%;
width: 160px;
height: 160px;
background: rgba(0,0,0,.5);">
</div>
</div>
</div>
</div>
Not sure if this is what you want. One important thing is to have card-image
positioned relative, then you can use that as a reference point instead of the window. Then this has to have the overflow applied to it to hide the content, as it's the container the content is in.
Your image is broken for me and it's not clear exactly what or where you want it.
It would probably be better to use the card-image with a background image and then add the circle as normal content inside of it.
.card-image{
background-repeat: no-repeat;
background-size: cover;
position:relative;
overflow:hidden;
height: 300px;
width: 418px;
}
.price-wrapper{
position: absolute;
box-sizing: border-box;
left: 309px;
top: 206px;
border-radius: 100%;
width: 160px;
height: 160px;
background: rgba(0,0,0,.5);
padding: 50px;
color: #FFF;
}
<div class="row">
<div class="col s12 l4">
<div class="card">
<div class="card-image" style="background-image: url('assets/img/jonatan-pie-415847.jpg')" >
<div class="price-wrapper" >
$9.99
</div>
</div>
</div>
</div>
This will give you a bit more control over the content inside of the circle. I left the background image as an inline style, this way you can change it with like PHP code or what have you.
I threw a bit of "flair" in to it so I could put an actual price value you in there, not sure if you need that, but I added box-sizing
and color
for it.
Just a thought.