FAQ Card - Dropdown Component Only using HTML and CSS
Design comparison
Solution retrospective
Hi Everyone 👋 I have some Questions for you
-
How to make the illustrations positions fixed for all view size ? For this issue i use position absolute and percentage. and lot of media query. I don't know which is the best way to complete this. However I complete this challenge. Pls let me know the best way to do it.
-
How much time it will take to complete this challenge in your guess ?
-Happy Coding 🎄🎁
Community feedback
- @amalkarimPosted almost 2 years ago
Hi VIGNESHAJITH,
To make the illustrations positions fixed for all view size, I think it's easier using
position: absolute;
andtransform
property. Here's what I will do to make the position of the woman illustration and background pattern fixed and easy to maintain:.bg-pattern { position: absolute; left: -50%; top: 50%; transform: translateY(-58%); } .woman_illu { position: absolute; left: -10%; top: 50%; transform: translateY(-50%); width: 50%; }
I think we could safely remove
z-index
property because it's not necessary here.We could also use the same technique to position the small-box image.
Please note that the above code is only for desktop view. You will need to adjust them for the mobile view.
Hope this helps. Happy coding!
Marked as helpful0@vigneshajithPosted almost 2 years ago@amalkarim Hi dude 👋, Thanks for sharing your knowledge with me. That was really helpful keep help other's 👍.
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