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

HTML How to Make a Website Adding Pages to a Website Make an About Page

how 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
Angel Naranjo
30 Points

Just select the img element and give it a property of "display" and value of "block".

img {
  display: block;
}
Curtis Murley
Curtis Murley
2,766 Points

When you see the word 'select' it's a hint to go into your .css file

img {
  max-width: 100%;
  display: block;
}