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.

HTML How to Make a Website Adding Pages to a Website Add a New Page

Display: block; ?

when add the display block element to my stylesheet it takes the photo out of my page? What am I doing wrong?

4 Answers

Do you have an example of your code?

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 90,705 Points

Without the code, I can only guess a stray semi-colon is affecting the display of your photo.

I have the same problem,

only Firefox issue for me, chrome is working fine: http://i.imgur.com/DZkVOsl.png (with display block) http://i.imgur.com/ulV8Drs.png (without display block) http://i.imgur.com/zeyl07x.png (3d view with display block - Pretty interesting)

found a workaround by using clear property on img selector: http://i.imgur.com/Ibh9iJ6.png (clear: both before display: block)

but It should be better I think if I setted this clear: both on header, which is the same, but more cleaner solution

from the project files, I can see that main.css, hasn't this "fix" on header or wrapper, so I think that it must be noted somewhere lastly, is this a bug that should be noted/fixed by normalize.css project?

thanks, Antonis

Juan Aviles
Juan Aviles
12,795 Points

I was going through the same issue with this lesson today. I figured it was a Firefox problem since that's what I'm using. I searched around, but found no answers as to why "display: block;" does not work with Firefox. Does anyone have any ideas?