iframe Not Working |
iframe Not Working |
orcainbox |
Dec 11 2019, 02:40 AM
Post
#1
|
Group: Members Posts: 7 Joined: 29-November 19 Member No.: 27,055 |
I am trying to insert an iframe but its not working.
Whats wrong with my code? <div> <p style="text-align:centre;"> <iframe width="560" height="315" src="https://www.instagram.com/p/B50hlJiH585/?utm_source=ig_web_button_share_sheet" frameborder="0" allowfullscreen></iframe> </p> </div> http://www.orcaaccounting.com/helloFriend.html |
Christian J |
Dec 11 2019, 06:43 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
I am trying to insert an iframe but its not working. Maybe Instagram does not permit some URLs to be framed? Are you using the URL Instagram itself recommends for embedding? QUOTE Whats wrong with my code? Nothing relevant (but the correct spelling in CSS is "text-align: center"). |
orcainbox |
Dec 11 2019, 09:38 PM
Post
#3
|
Group: Members Posts: 7 Joined: 29-November 19 Member No.: 27,055 |
thanks for the er nor re in centre. In Canada we spell it centre nor center.
I removed the instagram link and replaced it with a you tube link but same thing, no iframe shows up on the page. |
pandy |
Dec 12 2019, 07:50 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Now nothing loads. Your server seems to be down.
|
orcainbox |
Dec 13 2019, 08:27 PM
Post
#5
|
Group: Members Posts: 7 Joined: 29-November 19 Member No.: 27,055 |
Now nothing loads. Your server seems to be down. No server is up, http://orcaaccounting.com/helloFriend.html |
pandy |
Dec 13 2019, 08:38 PM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
So you've changed to Youtube. I think it'll work if you use the whole iframe code youtube wants you to use. At least that works locally. I don't know what the attributes you've excluded do, but they do seem to do the trick.
|
orcainbox |
Dec 14 2019, 01:56 PM
Post
#7
|
Group: Members Posts: 7 Joined: 29-November 19 Member No.: 27,055 |
This code worked
[<iframe width="560" height="315" src="https://www.youtube.com/embed/riFyKUyGb4k" frameborder="0" allowfullscreen></iframe>] w00t! |
pandy |
Dec 14 2019, 09:11 PM
Post
#8
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
But that's what you had when I looked and then it did not work. It didn't work locally either.
|
CharlesEF |
Dec 15 2019, 01:48 AM
Post
#9
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
The new code doesn't have the query string part.
|
pandy |
Dec 15 2019, 12:45 PM
Post
#10
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
There wasn't a query string in the old either. I still have it. It's the same as now.
CODE <iframe width="560" height="315" src="https://www.youtube.com/watch?v=riFyKUyGb4k" frameborder="0" allowfullscreen></iframe> I changed that to the full youtube tag and then it worked for me. CODE <iframe width="560" height="315" src="https://www.youtube.com/embed/riFyKUyGb4k" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> |
Lo-Fi Version | Time is now: 19th April 2024 - 06:35 AM |