Design comparison
SolutionDesign
Solution retrospective
I faced a challenge on how to make the clickable area of the view icon take the whole space in a div. I searched a lot for that, and I found a simple solution, I just made the <a class="link-image">
to:
.link-image {
display: block;
width: 100%;
height: 100%;
}
And that did the job I wanted. Please tell me guys if that's the correct way to do it
Community feedback
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