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

Make sure you're using Foundation's class for flexible video on line 52 i am useing it but it not working why.

give the div a flexible video i did that and it not working plz help.

index.html
<!DOCTYPE html>
<html>

<head>
  <title>Ribbit - A Treehouse Project</title>
  <meta name="viewport" content="width=device-width">
  <link rel="stylesheet" href="css/foundation.min.css">
</head>
<body>

  <!-- Treehouse Content -->
  <div class="row">
    <hr>
    <div class="large-6 hide-for-small columns">
      <h3>Learn how to make this app for yourself</h3>
      <p class="copy-offset">
        We will build on the concepts learned in previous iOS projects to create an app that will allow users to send photo or video messages to other users that will be deleted once viewed.
      </p>
      <div class="row th-copy"> <!-- Nested row -->
        <div class="large-6 columns">
          <img class="rnd" src="img/thumb_ribbit.jpg"  data-reveal-id="vidModal" data-reveal>
        </div>
        <div class="large-5 pull-1 columns">
          <p><em>Get access to courses for only $24 a month!</em></p>
          <a href="#">Visit Treehouse &raquo;</a>
        </div>
      </div>
    </div>

    <div class="large-6 columns">
      <img class="th-logo" src="img/th-logo.png" alt="logo">
      <p>
        Treehouse provides an extensive library of step-by-step video courses and training exercises that will give you a wide range of in-demand technology skills that will help you land your next dream job.
      </p>
      <div class="row th-copy hide-for-small"> <!-- Nested row -->
        <div class="large-4 columns">
          <img class="circle" src="img/thumb_ben.jpg">
        </div>
        <div class="large-8 columns">
          <p class="teacher-desc th-copy">
            <strong>Ben Jakuben</strong>
            <span>Teacher</span>
          </p>
        </div>
      </div>
    </div>
  </div><!-- End Treehouse Content -->

  <!-- Video Modal -->
  <div id="myModal" class="reveal-modal" >
    <h3>Learn how to make this app!</h3>
    <div class="flex-video">
      <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 -->

  <script>
  document.write('<script src=' +
  ('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') +
  '.js><\/script>')
  </script>
  <script src="js/foundation.min.js"></script>
  <script>
  $(document).foundation();
  </script>
</body>
</html>

Hi Techelsa,

The "frameborder" attribute on the "iframe" element is obsolete. It looks like you want to use css instead. Maybe try

style=border:none;

http://stackoverflow.com/questions/9985658/ie-frameborder-alternative

This link gives a bit more information.

Hope this helps!

Happy Coding!

Cheers, Amandeep

Riaz Khan
Riaz Khan
10,188 Points

I passed with

<div class="flex-video">