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

trouble in firefox with display: block;

When I use the code

.profile-photo{ display: block; }

inside of firefox, my photo dissapears. I have followed the direction to the t but for some reason that line of code is causing me trouble. The other bits of css work just fine. Is it possible that I'm doing something wrong? I'm in the workspace and used the auto complete feature to write the line.

3 Answers

Yes, you will probably find that the image is actually appearing in the top right of the page. Try using a {clear: both;} in your css.

Something like:

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

I've just checked and it does appear that Nick has updated the teacher notes on the videos page:

"Correction for Firefox

There's a bug in the CSS for this video that causes the profile picture to display incorrectly in Firefox. In order to correct the issue, the clear property with the value both needs to be applied to the .profile-photo class."

here is the full section I was working on related to the video

/****************************** Page: About *******************************/

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

Thanks!