Design comparison
SolutionDesign
Community feedback
- @hyrongennikePosted about 2 years ago
HI @fizasahar12
You can add the below media query fix some of the alignment issues on mobile. You just need look at the spacing, font-sizes
@media (max-width: 640px) { .sub_container { margin: 2rem auto; display: flex; flex-direction: column; width: 100%; padding: 1rem; } .smallcontainer1 img { max-height: 300px; object-fit: cover; } .sub_container > div { width: 100%; } smallcontainer1 { height: 300px; } }
Congrats on completing the challenge on to the next one π
Marked as helpful0
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