This code has been provided to me in another question that I have asked. The code does exactly what I want, which is that when I hover over it, it shows me an iframe. But when I put it on my website made with Adobe Muse the code shows errors. I am attaching an image that shows the error below the code that I have been provided.
In the CSS, the style is being applied to all the links on the page, so that it only affects the link you want, you have to give it a class.
HTML
CSS
It seems that there is a conflict in the CSS and, although you have since the
iframe
is hidden in normal state, it is showing. That may be because there is a more specific CSS rule than the one you have defined.You can click on it
iframe
with the right mouse button and inspect the element. You will then be able to see the styles that are applied (or not) to that element, and create a more specific rule than the one you have above.Another possible solution would be to use
!important
and make your styles apply with a higher priority than the others. Although perhaps not the most recommended because it makes the code more difficult to maintain after a while, and if the other styles also have!important
then there will be no change.The code would look like this: