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.

iOS

Adam Smallman
Adam Smallman
4,182 Points

How do a add a video to a mobile site ?

How do a add a video to a mobile site, that I can scroll over ?

3 Answers

Thomas Seelbinder
PLUS
Thomas Seelbinder
Courses Plus Student 1,223 Points

For instance

<div class="videoWrapper">

<iframe width="560" height="315" src="LINK TO VIDEO" 
frameborder="0" allowfullscreen></iframe>

</div>
Adam Smallman
Adam Smallman
4,182 Points

I have tried this but you cant scroll down if you put your finger on the video. Here is the link http://tomshilcockcreative.com/showreel.php try it on a phone

Thomas Seelbinder
PLUS
Thomas Seelbinder
Courses Plus Student 1,223 Points

I took a look.

I am able to scroll down but there isn't any content below the video. I see a Red bar that the video appears to be on top of.

Can you post both the CSS and the HTML?

Adam Smallman
Adam Smallman
4,182 Points

What mobile phone device did you look on?