@rayaatta
Posted
Hello πJackcheal Dang, congratulations on completing this challenge π
I have some suggestions you might find interesting.
1
Remove the <div class= "attribution">
from the main and change it to <footer class="attribution">
And wrap it's text inside a p
element.
This improves accessibility and SEO since it is much more semantic.
2 About your questions regarding css best practices.
a)
You used
width: 310px;
On the .card
This is okay but in case a screen is less than 310px wide then the card overflows the view port.
You can make it more responsive by using
max-width:min(90%,310px)
This means it is 310px but on smaller screens it only covers 90% of the width.
b) In order center your card on any screen,add
min-height:100vh;
To the css for body and then remove the margin properties from .card
.
You can learn some best practices from this site https://fedmentor.dev/
I hope this helps π
Your solution is awesome π
Happy coding broβοΈ
Marked as helpful
@jackchealdang
Posted
@rayaatta Thank you so much! I've appliyed the max-width: min and min-height: 100vh to my FAQs Accordion and it's amazing. Appreciate the help! π I'll make sure to use footer for SEO as well