Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive testimonial grid section with CSS Grid

#accessibility

@BhekiAccion

Desktop design screenshot for the Testimonials grid section coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

@ThanhVuong0904

Posted

Hi Bheki Accion Nkomo!

In body tag, you should add margin: auto

image

0

@BhekiAccion

Posted

@ThanhVuong0904 Hi may l know why and what it does? does it centre the div vertically or something? If that's the case isn't it better to apply that to the div than to the body element? Your advice will be greatly appreciated.

0

@ThanhVuong0904

Posted

@BhekiAccion Because you set the max-width value for the body tag, margin: auto or margin: 0 auto will help center horizontal the child tag.

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

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