Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Can anyone help me?

How can i do my website gallery like this? I want my pictures be different size but fill each other. https://www.pexels.com/search/car/

2 Answers

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

After looking at their css files it seems like they're using flexboxes. Have you tried flexboxes? Here's a Treehouse course on using flexbox. I know there's another course where it comes up as well, but can't locate it at the moment. https://teamtreehouse.com/library/css-layout-techniques/flexbox-layout/using-flexbox-today

i dont think so. maybe they use javascript

Adam Rose
Adam Rose
10,515 Points

Javid, After a quick look it seems like they used a "data-row-grid" to display their photos, which has a list of classes which intern are personally stylized based on wear an image is intended to fall within the grid.

Pull up the chrome console and look at <div> class = "photos"