@denielden
Posted
Hi Chijioke, great work on this challenge! š
Here are a few tips for improve your code:
- add
main
tag and wrap the card for improve the Accessibility - remove all
margin
frombody
- after, add
min-height: 100vh
to body because Flexbox aligns child items to the size of the parent container - instead of using
px
use relative units of measurement likerem
-> read here
Overall you did well š Hope this help!
Marked as helpful
@CEE-AI
Posted
@denielden Deniel Den, Thanks for the corrections and suggestions, I find them super helpful, thank you. Please can you further expatiate on the first suggestion: add main tag and wrap the card to improve accessibility? thank you.
@denielden
Posted
@CEE-AI You are welcome! Sure, Read here. Wrap card like this:
<body>
<main>
<div class="card">
.... card content
</card>
</main>
</body>
@CEE-AI
Posted
@denielden Thank you, super helpful