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

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?