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 trialAdi Agha
104 Pointsthe hight of pictures increases
only the hight of the pictures increases even after following every step
Adi Agha
104 Pointswell 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
19,579 PointsIf 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.
Adi Agha
104 Pointscan you show me exactly what to put in my css code to make the heights the same
Martina Carrington
15,754 Pointsim having the same problem as well
Wayne Priestley
19,579 PointsIf 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.
Wayne Priestley
19,579 PointsWayne Priestley
19,579 PointsHi Adi,
Your going to have to give more information if you want help with the challenge, including posting your html and css.