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

the hight of pictures increases

only the hight of the pictures increases even after following every step

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Adi,

Your going to have to give more information if you want help with the challenge, including posting your html and css.

well i put different pictures in my gallery... the heights are different... so how do i put the heights to be the same you can try putting different pictures with different heights and look

3 Answers

Wayne Priestley
Wayne Priestley
19,579 Points

If you put pictures that have different heights into your gallery they are going to have different heights when you see them in the browser.

You could make all your pictures the same height or use the height property.

can you show me exactly what to put in my css code to make the heights the same

Martina Carrington
Martina Carrington
15,754 Points

im having the same problem as well

Wayne Priestley
Wayne Priestley
19,579 Points

If you Put the following in your html

<img src="smiley.png" alt="Smiley face" height="150" width="150">

Or in your css you can put

#my-smiley {
    background-image:url(mysmiley.png);
    width:150px;
    height:150px;
    padding:10px;
}

Hope this helps.