As the title says, is there a way to style an iframes pseudo before
/after
? Without wrapping the iframe with another div
, or else?`
I tried to style it like any other element, but no success:
iframe::before {
content: 'foo';
position: absolute;
top: 0;
left: 0;
}
iframe::after {
content: 'bar';
position: absolute;
top: 0;
right: 0;
}
http://fiddle.jshell.net/ppRqm/
Update
A known workaround is to add the before/after to an element in the source file: http://fiddle.jshell.net/ppRqm/2/
But sometimes you've no access to the source-file.