My goal is to create a shadow effect for an iframe element using its parent div element.
Here's the HTML:
<div>
<iframe width="560" height="315" src="//www.youtube.com/embed/zdOmNiXvM3w?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
And here's the CSS:
div {
box-shadow:
inset 0px 11px 8px -10px black,
inset 0px -11px 8px -10px black;
}
Although I have this code, the iframe seems to override the z-index in CSS. I used a Youtube iframe as an example, but I need this solution to also work with standard iframes like one linking to Google. Preferably, this would be achieved using only CSS/HTML.