
Solution retrospective
Can someone help me to make my images stay hidden after the card boundaries?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @amalkarim
Hi Octávio,
Generally, you will need the image parent's element of the image has this property
overflow: hidden;
. But in this challenge, it's quite tricky. Because there are two images that shouldn't go beyond card boundaries, and there is an image that should go beyond boundaries (the red box image).To make this work, we need to create an element inside
<section class="faq__container-destop">
that hasposition: absolute;
and the same width and height as.faq__container-desktop
itself, but withoverflow: hidden;
, then we place two images inside it. And we place the red box image outside it to let it go beyond the boundaries. Don't forget to give.faq__container-desktop
position: relative;
If you still have any problem, feel free to reply this comment
Marked as helpful
Join 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