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 jQuery Basics (2014) Creating a Simple Lightbox Perform: Part 4

Irma Millirons
Irma Millirons
9,711 Points

Video

Would these same steps be used say if I wanted to present a video instead of a photo? If a user wanted to view a video but instead of going to Youtube.com instead I wanted them to see it on the page with background overlay for example.

3 Answers

If you want to add a video you can do it easier by using the iframe code from YouTube and changing the width and height according to your preference. You can find that by getting the code from Share -> Embed.

James Barnett
James Barnett
39,199 Points

In general yes. Getting video to display is a little more tricky than an image due to having to work with various encodings.

Irma Millirons
Irma Millirons
9,711 Points

Thank you guys. I'll look more into it.