Responsive Success Message using jQuery and Sass
Design comparison
Solution retrospective
Im unsure why my content is overflowing off of the page!
Community feedback
- @IamArshadAliPosted 12 months ago
Hello There! 👋
Congratulations on completing this challenge 🎉
I do have some suggestions that might interest you. 💡
Overflow:
Your content is overflowing because of two reasons:
- You've only specified
margin-left
to your.container > *
- You are explicitly setting the
width
of the.listItem
&.inputContainer
to100%
Overflowing problems can be fixed by
.container > * { margin: auto 20px; // set horizontal margin to your .container children } .listItem { width: --webkit-fill-available; // acquires the available space to prevent overflowing ... }
As there is a list of features, wrap them in a
<ul class="list"><li class="listItem">...</li>...</ul>
instead of<span class="listItem">
One more area I found that can be improved in your code is your submit button:
Button:
Instead of explicitly setting
width
andheight
and then specifyingflex
to center the text, you can givepadding
to the button and align the text to the center like this:<button class="button" type="submit">...</button> .button { text-align: center: padding: 10px 25px; width: 100%; // gets the full width from the parent flex container (.inputContainer) }
Above all your solution looks great! ✨
As I said, you already did an excellent job, but these details will improve it even further. 🚀
I hope this helps 👍
Happy Coding 🤓
Marked as helpful1 - You've only specified
- @abbigailmerrillPosted 11 months ago
This feedback was extremely helpful, and provided me with new ways to keep working forward! Thank you
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