Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 5 months ago

Responsive Testimonials Grid using Grid-Template-areas

sass/scss
ROKUROO7•350
@ROKUROO7
A solution to the Testimonials grid section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What challenges did you encounter, and how did you overcome them?

Through out this project i struggled to make the grid more responsive for different screens. That's when i began searching for resources related to grid and found two solutions.

1st soultion - Example

.container { grid-template-column: repeat(auto-fill,minmax(min(250px,1fr))); } With this method we can automatically create colums and rows based on screen space and let grid automatically wrap to subsiquent rows. but for Style prefrences i decided to use the 2nd solution.

2nd solution - Example

layout 1 DESKTOP

.container { grid-template-areas: "a a b e" "c d d e"; } Layout 2 - TABLET

.container { grid-template-areas: "a d" "b c" "e e"; Layout 3 - MOBILE

.comtainer { grid-template-areas: "a" "b" "c" "d" "e"; } In this method by using grid-template-area with grid-auto-column: 1fr we can set the grid layout more easily. As well change how it looks for different screens by changing layouts manually.

What specific areas of your project would you like help with?

Any feedback related to creating Responsive grid-layouts will be appreciated.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on ROKUROO7's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License