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 trialHannah PEAKMAN
1,432 PointsDisplay: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
19,201 PointsIf you take a look under the video you'll find a section labeled "teacher's notes" you'll find your answer there.
Kirk Severance
2,898 PointsYou might have to clear the display first. So add "clear: both;" before setting the display.
Hannah PEAKMAN
1,432 PointsThanks Kirk!
Hannah PEAKMAN
1,432 PointsPerfect! Thanks.
Hannah PEAKMAN
1,432 PointsHannah PEAKMAN
1,432 PointsThanks Julian, I had it on full screen and didn't see that section.