Hi Bel Sahn,
Congratulations on completing the first challenge, nice to meet you.
First of all, I would like to answer your questions
*** I have center this card as follows
- I wrapped the card into a div .wrapper. I set the min-height of the .wrapper to 100vh to have a page that has the length >= the screen's height. You also don't need to use
role="body"
for the body tag because it's not necessary. And you don't need to use role="main"
for the section because it's incorrect. You can read about the section tag here Section - MDN docs
<div class="wrapper">
<section class="card">
</section>
</div>
- Then I use display: flex, align-items and justify-content to make the card centered on main
.wrapper {
/* */
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}
- You can set the footer's position to absolute and put it at the bottom of the page so that it doesn't make the page height exceed 100vh
- In .card you can remove
margin: 20rem auto
.
- Now your card is in the center of the screen.
*** You can find colors in style-guide.md, or if not, I usually use the EYE DROPPER extension to search for colors. Since the font is thin, I usually open the image in a separate tab, zoom in, and use the eye dropper to detect its color.
*** Box shadow is
box-shadow: 0px 25px 25px 0px rgba(0, 0, 0, 0.05)
You can see the shadow is wide, blurred, the bottom of the card has shadow but the top is not. In such a case usually the y-offset and blur-radius will be large.
*** I think you use enough css, but you should limit the use of roles in the html and if you do, read about it and be careful with it.
*** Also we should not set the html font-size to 62.5%. It will be hard to combine your CSS with bootstrap because the html in bootstrap was 100%. You can read the explanations here. Never resize html/root font size down to 62.5%
Have a nice day and happy coding!