Design comparison
SolutionDesign
Solution retrospective
I found removing the whitespace from the main element originally to make the design look more or less identical to the preview, but messing with max-width percentages on the main and image element fixed that for me.
Community feedback
- @MelvinAguilarPosted about 2 years ago
Hi @Snorri967 ๐, good job for completing this challenge and welcome to the Frontend Mentor Community! ๐
Here are some suggestions you might consider:
- Use
min-height: 100vh
tobody
selector, with this property you set a height and you let the element grow even more if necessary, and removeposition: absolute;
from themain
element. - You can directly use
max-width: 320px;
in your main element and you would not need to implement a media query to modify the width.
I hope those tips will help you.
Good Job and happy coding !
Marked as helpful1 - Use
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