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

HTML

Adam Fainman
Adam Fainman
8,694 Points

Responsive Website Task Error

My solution for the challenge task "Flexible videos with fitvid" in Advanced Techniques for How To Build a Responsive Website doesn't seem to work. It asks: "Using the unique ID defined within the fitvid script, add the appropriate code to the div that contains the embedded video so it scales with the fluid layout.". My solution is: <div id="featured-video"> <iframe ...> </iframe> </div> and it prompts me saying that my ID might be wrong. Please help!

4 Answers

Aaron Chiandet
Aaron Chiandet
9,826 Points

The div that contains the video is where you need to be adding the "featured-video" as seen below. Also in the future when you post code, if you indent the code 4 spaces, it will format it so you don't have to use things like parenthesis. Good luck, let me know if you have any other questions.

<div id="featured-video" class="grid_6 omega">
<iframe src="http://player.vimeo.com/video/50610288?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0"></iframe>     
</div>
Adam Fainman
Adam Fainman
8,694 Points

(div id="featured-video")

(iframe ...)(/iframe)

(/div)

Substitute () for <>

This is my solution (it didn't appear in my main post) and for some reason it isn't right.

Adam Fainman
Adam Fainman
8,694 Points

Thanks Aaron! I tried nearly every combination but that I guess. It was a bit unclear because in the video she adds the <div id="featured-video"> separately, not within any existing div element.

Aaron Chiandet
Aaron Chiandet
9,826 Points

Welcome to treehouse, many of the quizzes and code challenges are worded poorly and you will find that you become stumped as a result of this more times than not.