need help
hi guys
how do i code the pink background behind the pictures
8 Replies
just use an after or something like that
And then use overflow hidden
in the figma file, it's an svg. so should I just set the background to svg and put the images on top of it or are there better ways to do it
I'd suggest a radial-gradient background https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/radial-gradient
i don't think it can done with radial-gradient background
There was no need for that
But the answers are still valid
Either use another element, like a div, a pseudo element, or a radial background as jochem says
https://codepen.io/jochemm/pen/PogOzOb
that's all terrible code, it's 0:30am, but it is possible using
background: radial-gradient();
Getting code from Figma is not recommended it’s not built for that. For instance I’ve seen css for text set it’s black text color as a background without a bg clip of anything. People are going to copy that and be very confused why they just have a black box and cannot see their text.
Jochems suggestion of a radial gradient is gonna be the fastest way to accomplish this