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 trialCarl-Kaspar Puhm
Front End Web Development Techdegree Student 8,692 PointsWhats a good way to display full size images on a static website?
Hi Treehouse community! I am working on a website to display my friends art. I need to make a gallery for full size images. Next to every full size image i need to have a piece of information. Something like this:
Now because it is a static page i see two options:
- using a lightbox, but it seems to be hard to display an image and some text next to it using this method.
- making a separate html document for every single one of the 8 artworks that we need to display, and easily develop the site from there. i think it is not the most clever method tho.
What are the other options?
Thank you, Kaspar
1 Answer
Kevin Korte
28,149 PointsI just want to ask first, why does it have to be static? For only 8 images I'd probably just go with option B, as that's still manageable.
But, maybe check out some static site generators that would still allow you to seperate content from style, so if you wanted to update the template, you have one space to do it, not 8 or more
Carl-Kaspar Puhm
Front End Web Development Techdegree Student 8,692 PointsCarl-Kaspar Puhm
Front End Web Development Techdegree Student 8,692 PointsThanks for the quick answer!
It is static just because i have no idea how to convert it to a dynamic site. Just not there jet! As soon as i can it is going to be converted into a dynamic site.
But i'll go for the plan B at the moment.
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsGotcha, no worries, that makes sense.
I think a lightbox might add unnecessary complexity. And then when you're ready, convert that over to a dynamic site so you can separate content from design and you'll make your life as a dev much easier.
But we all start somewhere, I still remember the days I did static sites too, same reason. Just keep at it.