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

HTML

Can you use an HTML table to organize photos into a grid?

I have 16 images that i will have to change every few months and i thought it would be easier to try to create a table. Can i do it this way or is there a simplier way?

1 Answer

You can if you want, but tables are really meant for displaying data. I would think about a unordered list and nest a figure element in the list items. That way you have more control and is more responsive. Tables are a pain for mobile devices. Here is more info on the figure element: fig