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

Hannah PEAKMAN
Hannah PEAKMAN
1,432 Points

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,201 Points

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

Hannah PEAKMAN
Hannah PEAKMAN
1,432 Points

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

Kirk Severance
Kirk Severance
2,898 Points

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