Design comparison
SolutionDesign
Community feedback
- @HamzaouladevPosted over 1 year ago
Hello @Sarah-24, here is some feedback to improve your layout:
-a good hack for responsiveness here is to give your component a relative width:
width: 90%;
and a max fixed width like:max-width: 300px;
and for centering you can usemargin: 0 auto;
-a good rule for images is to use this code to make sure they wont overflow or break layouts:
img, picture { max-width: 100%; display: block; }
-also you can use some padding for the main component to give the image some space arround the edges
hope you find this feedback helpful, happy hacking!
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