Design comparison
Solution retrospective
Got stuck on applying the cyan overlay to the equilibrium image for a little while. I'm wondering if there is a way to apply the overlay with the :hover pseudo class? As it seems more straightforward to me but I couldn't get it to work with that method.
Community feedback
- @VladimirBrscicPosted almost 3 years ago
Hi, good strategy would be first make a dedicated parent element ONLY for image and overlay. That parent element will have position: relative. ".overlay" will, among other properties, have position: absolute, width: 100%, top: 0 and left: 0. This is just beginning. Now try to continue from here on your own, if you get stuck you can ask again for help. Happy coding!
Marked as helpful1@95FredoPosted almost 3 years ago@VladimirBrscic Thank you for sharing this strategy with me. This makes the overlay responsive, which is what I was having trouble with. I will be using this strategy in the future!
1@VladimirBrscicPosted almost 3 years ago@Fredo-WD You're welcome, glad that I was of any help!
1 - @RioCantrePosted almost 3 years ago
Hello there! Awesome work with this one. Viewing your solution, I would suggest this for you...
- Add
color: var(--Soft-blue);
in thehr
rule set - Set
width: 100%;
for the.prices__price
and.times__time-left
- Import the
attribution
style in CSS file and removestyle
tag - Wrap
attribution
with specific tag likefooter
for readability
Overall you did well, Hope this is helpful!
Marked as helpful1@95FredoPosted almost 3 years ago@RioCantre Thank you for taking the time to help me out, especially with the .prices__price and .times__time-left elements, appreciate it!
1 - Add
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