Responsive Testimonial Section using CSS Flex Box

Solution retrospective
1 Nothing was difficult. 2 Flex box make it responsive. 3 Learning many new things from Front-End Mentor. 4 l will keep excepting challenges to grow my skills to the next level. Thank you Front-End Mentor for making that amazing and enjoyable challenges.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @correlucas
👾Hello Tawab Khan, Congratulations on completing this challenge!
Great code and great solution! I did this challenge too and know how much is hard to set up this
grid layout
. I think you've done a really good job building everything! Here's some tips for you:Your component is okay but its missing the vertical alignment. The best way to do it is by using
flexbox
. First step is to addmin-height: 100vh
to make the body height size becomes 100% of the screen height, this way you make sure that whatever the situation the child element (the container) align the body and then use the flex properties for alignment withdisplay: flex
/align-items: center;
/justify-content: center;
body { min-height: 100vh; background-color: #ecf2f8; font-family: "Barlow Semi Condensed", sans-serif; display: flex; align-items: center; justify-content: center; }
Something you can do is to improve your html markup using meaningful tags and replacing the divs. In this case, for example the main block/div that takes all the content can be wrapped with
<main>
or section, if you think about = the cards you can replace the<div>
that’s wrapping each card with<article>
you can wrap the paragraph with the quote with the tag<blockquote>
this way you'll wrap each block of element with the best tag in this situation. Note that<div>
is only a block element without meaning, prefer to use it for small blocks of content inside bigger blocks wrapped with some better markup.Here's a complete guide for HTML semantic TAGS: https://www.w3schools.com/TAgs/default.asp
✌️ I hope this helps you and happy coding!
Marked as helpful
Join 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