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

code challenge CSS Responsive Design Flexible videos

I am sure this is easy but for some reason I get a Null response. Please help.

CSS responsive design advanced techniques, flexible videos, 1of 1 http://teamtreehouse.com/library/build-a-responsive-website/advanced-techniques/flexible-videos-with-fitvidjs

I am trying to include a screenshot to this post but it isn't happening.

7 Answers

Add the id "featured-video" to the div that encloses the video.

The grid_6 omega one.

Thanks. That is what I have been doing. The answer I get is "Null"

Are you sure? It worked for me. Can you give me the code that you used. (The entire thing please).

<!DOCTYPE html>
<html>
<head>
        <link href='style.css' rel='stylesheet' type='text/css'>
        <link href='https://fonts.googleapis.com/css?family=Nunito:400,300,700' rel='stylesheet' type='text/css'>
    </head>
<body>
    <div class="container">
        <div id="featured-video">
                <iframe src="http://player.vimeo.com/video/50610288?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0"></iframe>     
        </div>

    </div>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <script src="jquery.fitvids.js"></script>
    <script>
      $(document).ready(function(){
        $("#featured-video").fitVids();
      });
</script>
</body>

</html>

I reformatted your code. You can find out how I did it at this post.

<!DOCTYPE html> <html> <head> <link href='style.css' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Nunito:400,300,700' rel='stylesheet' type='text/css'> </head> <body> <div class="container"> <div id="featured-video"> <iframe src="http://player.vimeo.com/video/50610288?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0"></iframe>
</div>

Leave the class names in there.

Thanks for the help. That worked.