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

CSS How to Make a Website Styling Web Pages and Navigation Style the Portfolio

Just for kicks... what if we wanted to have three images?

What if we had 6 total images and wanted the images to be 3 x 2 (3 images wide, 2 rows) instead of 2, 2, 2 (1)?

Hi Mark,

Xenon has the correct solution. You'll end up doing this later in the responsive portion of the course.

main.css contains all the mobile styles as well as the styles that would carry through to the desktop.

3 across for mobile would be too much. It will be changed later in responsive.css to 3 per row at wider widths.

1 Answer

Xenon Thong
Xenon Thong
2,311 Points

Currently, each li item has a margin of 2.5% for both left and right.

You could reduce the max-width of the li element to 28.333%. [(100 - 2.5*3) / 3]