Do I need to use absolute or relative positioning for the image ?Or how do I approach this layout?

No description
6 Replies
Simon
Simon2mo ago
#how-to-ask-good-questions
i_lost_to_loba_kreygasm
huh ? My question is crystal clear
vic
vic2mo ago
Maybe try like this <div position relative> <img position absolute with z index of 2 > <div bg Color black as z index -1 > I'm not sure this one works And make the parent div as justify content space around
ἔρως
ἔρως2mo ago
none, you dont need to use any just use grid
Tok124 (CSS Nerd)
I would do it like this
No description
ἔρως
ἔρως2mo ago
grid display: grid; grid-template-columns: 1fr auto

Did you find this page helpful?