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

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

Display:block causing image to disappear on Firefox preview.

In "Style New Pages" under How to Make a Website, did anyone else have trouble with "display: block" causing the image to disappear on Firefox? I believe Nick Pettit was using Safari to preview the page, but that specific declaration caused the image to disappear every time. Thanks!

3 Answers

Julian Gutierrez
Julian Gutierrez
19,325 Points

If you take a look under the video you'll find a section labeled "teacher's notes" you'll find your answer there.

Thanks Julian, I had it on full screen and didn't see that section.

You might have to clear the display first. So add "clear: both;" before setting the display.

Thanks Kirk!

Perfect! Thanks.