Mobile-first approach on a Testimonials Grid Section
Design comparison
Solution retrospective
Proud of successfully using CSS Grid once again as a tool in the mobile-first approach. It definitely helps to render the final outcome on all screen sizes correctly.
What challenges did you encounter, and how did you overcome them?The main challenge was to place the quote mark image correctly. In the end I was able to place the image on the right top, but couldn't make it appear without having influence on the text color.
What specific areas of your project would you like help with?Placing the quote mark image behind the text. I tried to use the z-index property... but i didn't achieve the result wanted. Any suggestions on how to approach this? Many thanks.
Community feedback
- @xlraullxPosted 4 months ago
hello, I did that quote image on css, it was like this:
.daniel-testimonial{ position: relative; z-index: 0; } .daniel-testimonial::after{ content: URL(./img/quote-image); position: absolute; z-index: -1; top: 0; right: 80px; }
I used position relative and absolute to the quote image stays only in the daniel-testimonial whatever the resolution, it will always be there, then I put z-index to undercover the text. hope I help you
Marked as helpful0
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