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 Framework Basics Build a Website with Foundation Building the Video Modal Window

Give the div on line 50 the class that hides the modal window, so that it's only revealed when triggered.

I cant seem to get this to run at all, here is what I am trying at the moment;

<!-- Video Modal --> <div id="vidModal hide-modal"> <h3>Learn how to make this app!</h3> <div> <iframe width="420" height="315" src="https://www.youtube.com/embed/hTf0CgRC1_Q" frameborder="0" allowfullscreen></iframe> </div> <a class="close-reveal-modal">&#215;</a> </div><!-- End Video Modal -->

2 Answers

Kenneth Camilleri
Kenneth Camilleri
7,816 Points

For the code challenge, at line 50: <div id="vidModal" class="reveal-modal"> The class you need to give is "reveal-modal". You can take a look at 'css/foundation.min.css' to see why applying this class to the div at line 50 gives this effect. You will then need to give it a trigger for when it reveals the data. This link will be helpful: http://foundation.zurb.com/docs/components/reveal.html

Hope this helps you

It is only revealed when triggered, so you need to use reveal instead of hide.

The correct code is:

<div id="vidModal" class="reveal-modal">