How to add a link from an external site that doesn’t have iframe capability | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to add a link from an external site that doesn’t have iframe capability

I have a link I want to add to a site that goes to a page with a video but it has no iframe settings so I’m confused on how to add just the video.

8th Jun 2018, 4:50 AM
Legacy Beats
Legacy Beats - avatar
4 Answers
+ 2
Legacy Beats oh ok, then just add an iframe and put the url to the site you want to embed as its src, set scrolling to "no" and finally with CSS give the iframe a width, a height and different negative margins, you'll have to play around with these 4 values until you make it show only the video part. I've coded and example for you where I've embedded SoloLearn's site and I only show the "Python 3 Tutorial" part of the site. HTML ----------- <iframe scrolling="no" src="https://www.sololearn.com"></iframe> CSS ------- iframe {     height: 1100px;     width: 400px;     margin-top: -850px;     margin-left: -36px; } CODE ----------  https://code.sololearn.com/WJPEWaUU3jxr/?ref=app
8th Jun 2018, 6:08 PM
Pao
Pao - avatar
+ 3
Let me see if I understood correctly... Do you want to embed a site into your website using an iframe but you only want to show a part of the embedded site which is a video?
8th Jun 2018, 7:13 AM
Pao
Pao - avatar
+ 1
Pao i do want to do that but im not sure how ive trien using a <link> element but to no avavail.
8th Jun 2018, 12:08 PM
Legacy Beats
Legacy Beats - avatar
0
Use the target pages embedded link for the player.
8th Jun 2018, 7:44 AM
Markus Kaleton
Markus Kaleton - avatar