I can't get this code to work in any IE version. Am I doing something wrong or is IE just crap as usual?
HTML:
<button>A button</button>
CSS
button {
position: relative;
}
button:after {
content: "Can u see me?";
position: absolute;
right: -100px;
top: 0;
}
Demo: http://jsfiddle.net/96ryusnp/
You need to add overflow: visible
to button
.
<button>A button</button>
button {
position: relative;
overflow: visible;
}
button:after {
content: "Can u see me?";
position: absolute;
right: -100px;
top: 0;
}
http://jsfiddle.net/96ryusnp/1/
IE must set it to hidden
by default on buttons.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With