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
Kieran Corcoran
11,188 PointsHow to add video video to web page
Hi,
Can anyone help with a problem I'm having. I am trying to add a uTube video using an iframe. However, when I add the video to the web page it does not honour other content on the page.
For example: Text on the page gets hidden behind
I have had a look at the Treehouse course but it does not go into detail on how to position videos next to other elements etc... Can anyone help?
1 Answer
annabrandt
6,094 PointsI Imbedded an Iframe from Youtube now. In my body it looks like this: <body> Hello World! <br> <iframe width="560" height="315" src="https://www.youtube.com/embed/7PCkvCPvDXk" frameborder="0" allowfullscreen></iframe> </body> The <br> is a brake row like a blank row in world.And it can help you to in this case, you can add as many <br> as you want. Now my text is on top of the Video. You can also adjust how big the Iframe should be in width and height.