I have a landing page I designed in Figma but quickly met challenges when implementing it. I have 2 transparent images that I want to place at the corners of my first div.
Here’s a pic to understand more clearly
Now here’s what I tried but it looks very hacky and I want a better way if possible
background-image: url('https://i.imgur.com/zld1w9Q.png');
background-position: 1300px -1000px;
background-size: 100% auto;
background-repeat: no-repeat;
what’s the best way to do this while being responsive ?
2
Answers
Modify Your code to match this style:
Parent div(container):
Top-right image:
bottom left image:
Ensure that the images are still contained in the parent div.
You can use CSS only for that: