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

intro-component-with-signup-form-master

Tharaa369 100

@Tharaa369

Desktop design screenshot for the Intro component with sign-up form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@Blackpachamame

Posted

Greetings Tharaa! you have done a good job.

To center the content in the center of the screen, you can apply the following to your CSS:

body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    Font-size: 16px;
    background-color: var(--Red);
    background-image: url(images/bg-intro-desktop.png);
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

main {
    display: flex;
    gap: 2rem;
    /* margin: 3.5rem auto; You don't need it anymore */
    width: 50rem;
}

footer {
    /* position: absolute; Here you decide if you still want to keep the footer down, although this will cause problems in the mobile version */
    /* width: 100%; */
    /* bottom: 0; */
}

Marked as helpful

0

Tharaa369 100

@Tharaa369

Posted

Thank you :)@Blackpachamame

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