Design comparison
SolutionDesign
Solution retrospective
I need some help about how to put the text over the picture and with the js logic
Community feedback
- @RocTanweerPosted over 3 years ago
Hello π @Diego
You have a very interesting question π
I am assuming you know flex box.
Answer points ;
- Make a flex box container
- Make an image container inside of it and align it to left and position it relative
- make a div inside image container and write your text.
- make that text div position absolute and place it as per the design
When you put position relative on a parent element then it's position absolute children will move with respect to itself and not body.
This is the main logic here
Hope it helps βΊοΈ and happy coding π
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord