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

Class property display: block; causes the image not to display at all. Any way around this?

When working through the lesson for Style New Pages, when asked to create a new class for the profile photo you are instructed to use the property display: block; in order to have the image be centered via the margin property. However in firefox 30, this causes the image to not show up at all, chrome recognizes the property display and shows the image as intended. Is there anyway around this in firefox?

3 Answers

Actually just found it after a quick google search

clear: both property needs to also be applied so that it appears regularly in firefox.

Helen Campbell
Helen Campbell
4,182 Points

I had the same problem and was having a hard time figuring out exactly what was wrong until I read your post. Thank you!

Ashley Bearden
Ashley Bearden
1,787 Points

I would have never figured that out. Thank you! Very helpful.