Today's CSS Battle

Hey guys :D I'm not a CSS professional (yet) and I'm having some problem with today's cssbatle. Can someone help me out how to do the scalloped border here?
No description
10 Replies
Jochem
Jochem3mo ago
the most likely candidate for this particular one for me would be three layered radial gradients that looks like three overlapping circles to me
Bloodika (Legjobb)
Bloodika (Legjobb)OP3mo ago
^^ I'll read the docs about those, thanks
Jochem
Jochem3mo ago
it's a combination of using multiple definitions in background-image for radial-gradient with a hard cut-off (two values with the same position in the gradient like the third example there)
Kingpin
Kingpin3mo ago
Use the square as a mask and then use 3 ovals shaped the same way like the preview. Eye and mouth also mask ig.
Jochem
Jochem3mo ago
an SVG clip-path could work too, but it's much harder to make an SVG than to position a couple of radial gradients
Kingpin
Kingpin3mo ago
I think to me personally radial gradients are trickier to get right and to cusomize.
MarkBoots
MarkBoots3mo ago
i like to do my cssbattles with background properties only. this is a way to do it. But there are lots of other ways
No description
brr
brr3mo ago
didnt know this was a thing here
Bloodika (Legjobb)
Bloodika (Legjobb)OP3mo ago
Oh wow, good job, lol. I wish I would be able to understand those props
Jochem
Jochem3mo ago
just break them down one by one, you can always ask if you're missing details

Did you find this page helpful?