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 trialDerek Goodwin
7,758 Pointshow do i "select the image and set it to be blocked" this is the challenge 3 of 5" in the how to make an about page?
<section> <img src="img/gratt.png" alt="any text to describe the image" class= "profile-photo/> <p>Experiment with color and texture </p> ... How do i set the display profile image to be blocked?
2 Answers
Angel Naranjo
30 PointsJust select the img element and give it a property of "display" and value of "block".
img {
display: block;
}
Curtis Murley
2,766 PointsWhen you see the word 'select' it's a hint to go into your .css file
img {
max-width: 100%;
display: block;
}