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 How to Make a Website Adding Pages to a Website Style New Pages

justinkim
justinkim
2,275 Points

Picture disappears when set to "display:block"

Has anyone else run into the picture of Nick disappearing when setting the display to the block property? The margin, max-width, and border-radius property don't seem to make the picture disappear, it's just when I set the display to block, it suddenly disappears, and I have no idea why...

3 Answers

It works for me.

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

i'm monitor-lizard.jpg this thread

Brian Peterson
seal-mask
.a{fill-rule:evenodd;}techdegree
Brian Peterson
Python Web Development Techdegree Student 13,634 Points

Hi Justin. Yep, it appears to be a browser issue. The CSS code works in chrome but it does not work in Firefox or Internet Explorer.

Hopefully, someone will figure out the answer and post it in this thread.