Responsive 3 column preview card component using css grid and flexbox
Design comparison
Solution retrospective
Completed the website in just 90mins, but i faced a problem. Whenever i tried to increase the font-size of my paragraph, the design of the anchor tags(which i am using for the learn more button) breaked down. A mysterious whitespace is created under the button.
These are some solutions that i already tried ,but didn't work for me.
- changing the anchor tags to button tags
- making anchor tags inline-block
I thought, because the number of words(even their length) in each paragraph are different, the amount of space they are taking is different. That's what must be causing this issue. But i am not sure.
If anyone has a solution/suggestion for the problem, i will be very grateful 🙏. Thank you and happy coding.
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