Design comparison
SolutionDesign
Solution retrospective
I had a very hard time implementing the hover on the main image to align with the image. Any advice is very much welcome.
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have some recommendations regarding your question that I believe will be of great interest to you.
CSS 🎨:
- "I had a very hard time implementing the hover on the main image to align with the image"
- Looks like you already implement the right method but the issue is you overused absolute position's properties like
top
andleft
etc.
- You can quickly fix the misplaced image by removing the following code from css
hero-image div:hover::before { top: 6.06rem; left: 36.5rem;
- You can able to see the changes after removing these two style rules. .
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful1@DarlenequamePosted over 1 year ago@0xAbdulKhalid Thank you it works just as you explained.
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