Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Build a Responsive Website Advanced Techniques Flexible Videos with FitVid.js

Steve Leichman
Steve Leichman
7,008 Points

FitVid ID Issue in Code Challenge

I'm stumped on this one. The directions are:

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.

In the code, the unique ID defined within the fitvid script is "#featured-video"

When I wrap '''<div id="featured-video"></div>''' around the iframe code, I keep getting this error message: Bummer! Make sure you're adding the correct ID to the iframe's container.

Steve Leichman
Steve Leichman
7,008 Points

div id="featured-video" /div (with proper angeled html parenthesis - the code ticks aren't working in the comments and are just deleting it) is what's wrapped around the iframe code.

2 Answers

Steve Leichman
Steve Leichman
7,008 Points

Never mind. Figured it out from an old post.

Steve Leichman
Steve Leichman
7,008 Points

This got eliminated from the previous post (and the "edit" button isn't working), but I have <div id="featured-video"> before the iframe line and </div> directly after it.