how to make transparent circle gap?

Hi guys, I need to make this transparent gap under the circle, how can I do it? I thought about clip path, but in my opinion it would be the problematic, and I want to find easier way, thanks in advance!
7 Replies
Joao
Joao•2y ago
You can use background: transparent, but then you'd have to use two elements to achieve this effect. I think clip path is exactly what you are looking for. You can probably just use a pseudo element I think, instead of having two elements like I said, so maybe background: transparent will also work.
~MARSMAN~
~MARSMAN~•2y ago
Clip path is gonna need a little bit of work i believe.. maybe do an SVG? Make a simple rectangle SVG with a half-circle cut from above. And use this SVG as a background img for the big white-background element under the close button. And translateY your close button. Unless the background behind these two elements is one color and not an image. Is it one color?
~MARSMAN~
~MARSMAN~•2y ago
~MARSMAN~
~MARSMAN~•2y ago
This background inside the red border
capt_uhu
capt_uhu•2y ago
radial-gradient on the lower element might work to
background-image: radial-gradient(circle at 50% -1%, #0000 30px, blue 31px);
background-image: radial-gradient(circle at 50% -1%, #0000 30px, blue 31px);
~MARSMAN~
~MARSMAN~•2y ago
Love it, simple and does the job 👌
RobyDobyDingo
RobyDobyDingo•2y ago
@therealmarsman background is a big image of cabinet and there are a lot of dots on it with tooltips of different cabinet features @capt_uhu I will try it! Radial gradient just works perfectly, thank you!