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 trialGarrett Sadler
2,169 Pointstrouble 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
bothxp
16,510 PointsYes, 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;
}
Garrett Sadler
2,169 Pointshere 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% }
Garrett Sadler
2,169 PointsThanks!
bothxp
16,510 Pointsbothxp
16,510 PointsI'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."