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
Richard Glover
10,068 Pointscode 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
Chase Lee
29,275 PointsAdd the id "featured-video" to the div that encloses the video.
Richard Glover
10,068 PointsThanks. That is what I have been doing. The answer I get is "Null"
Chase Lee
29,275 PointsAre you sure? It worked for me. Can you give me the code that you used. (The entire thing please).
Richard Glover
10,068 Points<!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&byline=0&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>
Chase Lee
29,275 PointsI reformatted your code. You can find out how I did it at this post.
Richard Glover
10,068 Points<!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&byline=0&portrait=0" width="400" height="225" frameborder="0"></iframe>
</div>
Chase Lee
29,275 PointsLeave the class names in there.
Richard Glover
10,068 PointsThanks for the help. That worked.
Chase Lee
29,275 PointsChase Lee
29,275 PointsThe
grid_6 omegaone.