Design comparison
Solution retrospective
At a very low resolution <350px my text starts to overflow the card. How can I fix it?
Community feedback
- @Shard-CodesPosted over 2 years ago
Hello Erwin, You did a great job on the challenge
Here's how you can fix your problem.
-
on your column-card element, add a max-width of 968px and width to 90%.
-
on your card element, remove the height and set your width to 100%.
-
Get rid of your 350px media query, As you don't need it.
I hope this helps happy coding.π
Marked as helpful1@lanszeszPosted over 2 years ago@Shard-Codes Hi! Thank you for your solution!
You gave me a good idea:
@media (max-width: 790px) { main.columncard div.card { max-width: 100%; } }
This way the text wraps nicely, just how I wanted. I decided to keep the 350px media query, so it looks a little bit nicer on Galaxy Fold in my opinion. π
Happy coding 4 you too!
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