Student Testimonals with grid (Testimonals grid section)
Design comparison
Solution retrospective
I am proud of the fact that I got the opportunity to work on this project from this platform, this is a great platform to practice front-end development skills. Also from what I learned on this challenge is amazing.
What challenges did you encounter, and how did you overcome them?In this project I encountered the challenges of grid, I always have a problem working with grid/flexbox I have to look up the code and try to figure it out. Even though I have worked with grid on some of the other projects. I tried googling but is there a way see the grid I always guess/visualize in my head where the element will go.
What specific areas of your project would you like help with?I know this code isn't perfect when you go full screen, when I go mobile screen it looks on my computer, just want to know if it looks good on other people's screen sizes. If you have other suggestions please let me know how to fix it.
Community feedback
- @kodan96Posted 7 months ago
hi there!
I was looking at your code and noticed that the syntax you used for
grid-template-rows
andgrid-template-columns
is invalid, you can't do just(2, 4fr)
there. Maybe you just left therepeat
keyword out.I'd suggest you looking up the
grid-template-areas
property, it helped me a lot to visualize my grid and in my opinion it's the easiest way to set up grids like this. You can also view my solutions for challanges that required grid to complete, you'll see how the property works.Maybe I'm missing something, but generally it's not a good idea to set fixed
height
on your elements, especially if you are aiming to make responsive designs in the future. Your divs will adjust their height automatically to the content heigh, and you can work yourself up with margin and padding to achieve the desired outcome.Hope this helps, happy coding and good luck!
Marked as helpful0 - @DanielfwwPosted 7 months ago
Hey Manny - Im looking at your project and l do see your blocks all over the place - and just to help you a little for example: If you are trying to use grid I would use display:grid and use grid-column-start to adress column or use grid-area to do row-start/column-start/row-end/column-end. The best way atleast for me is to look at the grid as almost like a chess board, and how much would you like to expand element - (where on the board would you like to put the element). In your example you dont really adress what grid supposed to do.
.test2 { position: relative; background-color: #fff; border-radius: 0.3rem; /* overflow: hidden; margin: 1.1rem auto; */ height: 25rem; /* padding: 0.75rem; */ width: 24rem; grid-column: 2; grid-row: 1
Hope this helps even a little.
Marked as helpful0 - @ikitamalarosePosted 7 months ago
First congratulations for the effort and the work done. I invite you to take a look at my solution on this challenge in order to get an idea.But also to document yourself on the CSS Grid.
Marked as helpful0 - @mverma45Posted 7 months ago
Thanks @Danielfww and @ikitamalarose I will look into them
1
Please log in to post a comment
Log in with GitHubJoin 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