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 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
MOD
Jonathan Grieve
Treehouse Moderator 91,252 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?