Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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