Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

newsletter sign up form

karan-2004โ€ข 70

@karan-2004

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


do test it out and share ur thoughts to optimize it

Community feedback

@MelvinAguilar

Posted

Hello there ๐Ÿ‘‹. Good job on completing the challenge !

I have some suggestions about your code that might interest you.

  • Regarding the styles, I would recommend avoiding defined heights and widths, especially using vh or vw, as it can make your component behave unexpectedly. Try using zoom to observe the strange behavior. If you want to limit the width, consider using max-width, and avoid defining a fixed height. Let the content determine the height or use min-height to allow the component to resize on any screen.

  • Add a cursor: pointer to the button for a more intuitive user experience.

  • Consider using a CSS reset to ensure consistent styles across different browsers.

  • Avoid using too many ids; reserve them for JavaScript and use classes for styling in CSS.

  • The width: 100vw is not necessary.

  • Consider using min-height: 100vh instead of height: 100vh to prevent it from getting cut off on mobile devices.

I hope you find it useful! ๐Ÿ˜„ Above all, the solution you submitted is great!

Happy coding!

Marked as helpful

1

karan-2004โ€ข 70

@karan-2004

Posted

@MelvinAguilar Yeah bro got it. Thank you for your feedback.

0

Please log in to post a comment

Log in with GitHub
Discord logo

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