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

Berry Wilson
Berry Wilson
5,983 Points

Help needed with css

Hi All, Despite following the instructions there is something wrong. I am taking the course How to build a web site. On a code challenge which I completed and passed I wrote this: CSS

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

When I come to apply it to my web page we are building on the course the image does not appear on the page.

When I remove the CSS display:block;

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

The image appears again.

Please help.

Berry.

2 Answers

Check out this topic. There are some possible fixes: https://teamtreehouse.com/forum/display-block-makes-my-image-of-nick-disappear