Design comparison
Solution retrospective
I couldn't make the second card be in the same place as the first one. The images are shown in my pc but not in the live site. So I'm waiting for your help :)
Another thing is, how do I upload the new versions? thanks.
Community feedback
- @lcscostadevPosted almost 2 years ago
you can use an display flex, align center, justify center on the body and also an 100vh to center, about the images i think its because of the dot:
remove this dot before /images: <img src="./images/illustration-thank-you.svg" alt="illustration thank you">
result: <img src="/images/illustration-thank-you.svg" alt="illustration thank you">
about new versions i believe you just commit the changes that you made. good luck !
Marked as helpful1 - @pRicard0Posted almost 2 years ago
You should never use margin to position this way. I recommend using flexbox in the body. The body needs
min-height: 100vh
to perfectly center the content using flexbox. You can learn more about flexbox in a interactive way clicking here.Using flexbox you'll be able to make the second card appear in the same place as the first one.
Use
alt=""
if the image is only for decorationI think the images didn't appear because the src is wrong. Sorry, I can't be sure.
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin 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