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

Html ,CSS and Javascript

Afolabi Quadriโ€ข 70

@afolabi-ola

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

Community feedback

P
Koda๐Ÿ‘นโ€ข 3,810

@kodan96

Posted

hi there! ๐Ÿ‘‹

You can center your content with Flexbox if you apply these to your body tag:

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

Use min-height, otherwise users won't be able to scroll down if your content does't fit into one screen on smaller screen sizes.

Hope this helped ๐Ÿ™

Good luck and happy coding!

Marked as helpful

0

Afolabi Quadriโ€ข 70

@afolabi-ola

Posted

@kodan96 Thanks alot I will make sure to do that and also submit my other solutions for other task I have completed on frontend mentors. I really appreciate ๐Ÿ˜Œ your review and suggestions.

1

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