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

HTML How to Make a Website Adding Pages to a Website Style New Pages

Giorgio Favotto
seal-mask
.a{fill-rule:evenodd;}techdegree
Giorgio Favotto
Front End Web Development Techdegree Student 1,752 Points

Not working on Firefox

Hi there!

This is happening. when i set to the class .profile-pic to display: block; the picture is not showing on firefox ( on chrome is appearing)

Can you post the relevant html and css?

3 Answers

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Giorgio,

You're right. This appears to be a bug in Firefox. I talk about a possible workaround in this forum post: https://teamtreehouse.com/forum/trouble-with-display-block-in-css-for-profile-photo

daniela
daniela
2,629 Points

I had the same problem and asked the question a few hours after. My HTML and css are below.

HTML code <img src="images/nick.jpg" alt="Photograph of Nick Pettit" class="profile-photo">

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

Thanks for the help!

Daniela