Newsletter sign-up form

Solution retrospective
I am proud of learning how to use custom marker in ul
:
What challenges did you encounter, and how did you overcome them?ul { list-style: none; padding-bottom: 1em; } ul li:before { content: url('./assets/images/icon-list.svg'); margin-right: 1em; }
I faced a challenge to get the dismiss button in the correct position in the mobile view. But after some trial and error, I was able to get it right:
What specific areas of your project would you like help with?.success-message { padding: 1em; position: relative; } .dismiss-btn { position: absolute; bottom: 1em; width: calc(100% - 2em); }
Responsive CSS & JS do's & don'ts
Please log in to post a comment
Log in with GitHubCommunity feedback
- @stephenlit
Great Job!
Looks really good! I notice in your mobile view the heading image slides down when you shrink the size down to 375px. I believe this is because of your align-items in your <main>.
After your media query try adding a align-items: start to your main.
main { background-color: var(--white); align-items: start; }
I think this will stop the heading image from moving down as you shrink the screen size. I hope this was some help in some way, of course I could be wrong as well lol
cheers!
Join 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