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

Contact-form

Peterā€¢ 150

@SIRBOLU

Desktop design screenshot for the Contact form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What specific areas of your project would you like help with?

Feedback needed. Thank you

Community feedback

Daniel šŸ›øā€¢ 44,230

@danielmrz-dev

Posted

Hey there! šŸ™‹šŸ½ā€ā™‚ļø

Congrats on completing the challenge! āœ…

Your project looks fantastic!

Here's a tip to make it even better:

Using margin and/or padding isn't always the best way to center an element. Try this super efficient method to center an element vertically and horizontally:

šŸ“Œ Apply this CSS to the body (skip position or margins to make it work correctly):

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

Hope this helps!

Keep up the great work!

Marked as helpful

0

Peterā€¢ 150

@SIRBOLU

Posted

Thank you very much @danielmrz-dev

0
Krushna Sinnarkarā€¢ 1,080

@krushnasinnarkar

Posted

Hi @SIRBOLU,

Your solution is great and well-structured! However, here is some suggestions:

Centering the form: The form is not properly centered vertically, and this issue becomes apparent when the screen size is increased. To ensure the card is centered both vertically and horizontally, you can add height and align-items: center to the body element.

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    height: 100vh; /* Ensures full height and centers the card */
/* existing styles */
}

Summary By adding align-items: center and height: 100vh to the main element, you can ensure that the card is perfectly centered in the viewport. This change enhances the layout's visual appeal and improves the user experience by making the content more accessible and aesthetically pleasing.

Feel free to reach out if you have more questions or need further assistance. I hope you find my feedback valuable, and I would appreciate it greatly if you could mark my comment as helpful if it was!

Marked as helpful

0

Peterā€¢ 150

@SIRBOLU

Posted

I really appreciate @krushnasinnarkar

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