I'm trying to create a hover tooltip using inline CSS without JavaScript.
This is the code I have now
<a href="#"
style="{position:relative; top:50px; left:50px;}
:hover span {opacity:1; visibility:visible;}">
hover text
<span
style="top:-10px; background-color:black; color:white; border-radius:5px; opacity:0; position:absolute; -webkit-transition: all 0.5s; -moz-transition: all 0.5s; -ms-transition: all 0.5s; -o-transition: all 0.5s; transition: all 0.5s; visibility:hidden;">
tooltip text
</span>
</a>
According to this it should be allowed: http://www.w3.org/TR/2002/WD-css-style-attr-20020515
I know this is not the recommended way to do it, but it needs to be usable where only inline CSS can be used.