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 Responsive Web Design and Testing Build a Three Column Layout

Kizzy Iz
Kizzy Iz
5,283 Points

Rollover text effect would be nice - Captions causing strange jumping

I decided to temporarily get rid of my captions. I've added 17 images to portfolio and it's not the amount of images, it's the length of the characters in the caption. It would be nice to solve this issue because the amount of characters will very from image to image. I thought about adding a rollover effect on the images. Can anyone recommend the most efficient way to write this code?

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

My first thought is to have a fixed width and height of auto for the element that holds your captions. That way you can keep your image proportions so each column only gets taller and not wider.