need help

hi guys how do i code the pink background behind the pictures
No description
8 Replies
lko
lko8mo ago
just use an after or something like that And then use overflow hidden
ULTRAMAN
ULTRAMANOP8mo ago
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
ULTRAMAN
ULTRAMANOP8mo ago
i don't think it can done with radial-gradient background
lko
lko8mo ago
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
Jochem
Jochem8mo ago
https://codepen.io/jochemm/pen/PogOzOb that's all terrible code, it's 0:30am, but it is possible using background: radial-gradient();
clevermissfox
clevermissfox8mo ago
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
Want results from more Discord servers?
Add your server