Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


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"