Why the link to YouTube is not clickable? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
20th Oct 2019, 8:11 AM
Erik Moučka
Erik Moučka - avatar
5 Answers
+ 5
Hello, I have been looking around, and my conclusion is that on the "iframe" section, you would need to remove "id=moreOptions". After this, I checked and you can't still access to it; it's blocked ("Webpage not available"). For this, you can change in target="view" to target="_blank" so the website opens in another window, now working perfectly. Hope this helped! ✨
20th Oct 2019, 9:37 AM
Elisaveta
Elisaveta - avatar
+ 1
It must have something to do with the iframe, it works if you remove that.
20th Oct 2019, 9:21 AM
Matt Watkins
Matt Watkins - avatar
+ 1
That's because of CSS style. If I remove CCS from the <div> by removing id, it works. It then opens a page that says "Webpage not available", but that's okay, it opens up without problems if I put another page in the link. But I need the style to make the options disappear when the mouse cursor is over the iframe, so I can't remove that style. I also found that the problem occurs when the z-index is less than zero. If the z-index is greater than or equal to zero, the link can be clicked, but then the options are in the foreground and I need them to be behind the iframe.
20th Oct 2019, 10:22 AM
Erik Moučka
Erik Moučka - avatar
+ 1
Try to change #moreOptions{ z-index:0; }
8th Nov 2019, 1:42 AM
Calviղ
Calviղ - avatar
0
It works if I set z-index to zero or greater, but then the options are in the foreground. I need the options to be behind the iframe because of the animation.
8th Nov 2019, 6:11 AM
Erik Moučka
Erik Moučka - avatar