Design comparison
SolutionDesign
Community feedback
- @DimitriTsikaridzePosted over 2 years ago
Hi @anubhav1206,
you can give image elements max-width: 100% to make them responsive and not overflow the parent element.
.container img { border-radius: 0.625rem; margin-bottom: 1rem; display: block; max-width: 100%; }
also instead of div with container class you could replace that div with main html5 element to be more semantic with your tags
happy coding.
0
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