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

Different resolutions on pictures

Hello everyone, I got a site which grabs photos and each photo got a different resolution and somewhat those pictures get bigger height than the other ones that got a smaller resolution, How can I make my css to make the height the same? , I do not want to use an insline html width and height in the img tag

1 Answer

apply a class to all your image tags such as <img class="same-height" src="something" alt="something> then in your external css file or in the head of your document do the css. ex. for in document <style> .same-height { height: 500px; } </style>