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

When adding profile picture on about page, display: block; inside .profile-photo makes my photo disappear. Any clues?

Done as in the video, yet I cannot figure out why the image disappears.

.profile-photo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }

Thanks in advance for the help!

Had to add clear: both; That does not appear on the video though!

11 Answers

Can you please show the code!

When you put display:block. It blacking the display of the image!

When you put display:block. It blocking the display of the imag

did u add clear: both and removed--- display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; } am facing the same challenge here

Yep, you need to add clear: both; before the line where you state display:block; or the imagen wont appear. You can check this by simply erasing the display:block. The image will apear on the left of the page. Then add display:block, and the imagen will disappear. If you then add clear: both; before display, the webpage will look as in the video.

.profile-photo { clear: both; display: block; }.....is it suppose to appear like this

And then add the margin and the border-radius

stil not working

do l add this jus below the paragraph text l created in the last challenge

.profile-photo { clear: both; display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }

tanx...solved

No problem! :D