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

CSS Grid, nth-child(#), selectors, class, flex, blockqoute,

P
Nico 330

@Nico243

Desktop design screenshot for the Testimonials grid section coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

This was my greatest challenge I've had. It took mistakes and errors and constantly adapting to new techniques and methods to help me through this. The inspection tool was my best friend for the grid layout.

Now that I have an Idea how the structure is going to look and how I could achieve the layout, I'm going to look a little more deeper on how I could right this code cleaner for readability and accessibility.

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

CSS Layout Alignment

Challenge: One of the difficult parts initially in aligning elements within the testimonial grid and handling images and text properly.

Solution: By playing around with CSS properties such as display: grid, grid-template-areas, and using flexbox (display: flex), I was able to control the layout and position elements next to each other. For precise positioning, I've learnt how to adjust margins, padding and align-items.

Background Image Positioning

Challenge: There was a problem of getting the SVG (quotation pattern) to appear at the right place in the first testimonial.

Solution: After trial and error, I have learned that adjusting background-position and background-size can put SVGs where they should be. This needed deep knowledge on functioning of CSS background properties as well as exactly how pictures ought to be aligned.

Media Queries for Responsive Design

Challenge: It was complicated because my layout shifted dramatically when applying different screen sizes, making it hard to use grid-template-areas in media queries for responsive design of testimonial layouts.

Solution: I tried out several alternatives for grid-template-areas setups and found that by changing configurations differently for certain screen width ranges, you could keep things consistent across all devices.

Font Sizing and styling in css

Challenge: Ensuring font size and weight using CSS variables and the second had different styling.

I've learned how to apply specific classes and make use of CSS ('var(()') to manage typography. I've also used inline styles to override inherited styles when needed

SVG handling & Positioning

Challenge: Intergration of SVG image inside a specific testimonial and aligning it perfectly.

Solution: using a testimonial:nth-child(1) to place the svg in it's correct container

Frustration and Overwhelmed

Challenge: Feeling overwhelmed by the complex system of CCS layouts, when smaller changes would drastically alter my design.

Solution: I've persisted through, frequently asking questions to gain clarification, watching tutorial videos. By breaking the challenges into smaller, more manageable tasks, I made progress step by step.

using advanced CSS techniques

Challenge: The us of advanced techniques like nth-child, grid-template-areas and media queries felt unfamiliar and difficult to implement

Solution: I've practiced wit examples, Adjust my layout based on feedback from others, and slowly became more comfortable using these techniques.

It comes down to persistence to testing different solutions, asking the correct questions, breaking the complex layout into smaller tasks which helped me overcome these challenges

Community feedback

@SemptechVzla

Posted

Very nice!

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