Design comparison
Solution retrospective
All feedback is welcome thanks in advance
Community feedback
- @ecemgoPosted over 1 year ago
Some recommendations regarding your code that could be of interest to you.
HTML
In order to fix the accessibility issues:
- You need to wrap
<div>
with the<main>
tag in this way:
<main> <div> ... </div> <main>
CSS
- If you want to center it easily and give the recommended color to the background, you can update the
body
in this way:
body { background-color: hsl(212, 45%, 89%); font-family: "Outfit", sans-serif; font-size: 15px; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
- if you use flexbox in
body
, you don't need to give margin todiv
. Thisdiv
is the updated version:
div { background-color: white; border: 2px solid whitesmoke; border-radius:20px ; max-width: 320px; padding: 1.075rem; }
Hope I am helpful. :)
0@Raghda19Posted over 1 year agoThanks for giving so much effort and time to come along with this clarification that I keep stuck on it and trying to get my head around it, your explanation is very helpful that I can't thank you enough. I really appreciate ,thanks allot.
@ecemgo1 - You need to wrap
- @georgebleyerPosted over 1 year ago
Hello,
Congratulations on completing this challenge. Here are some tips on how to align your card. In your .body put this code:
display:grid; place-items:center; min-height: 100vh;
You can use Flex Grid to align the card to.
I hope it helped.
0@Raghda19Posted over 1 year agoI really appreciate your help ,thank you so much @georgebleyer
0
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