I want to show the value of an attribute as text.
<div title="12:56pm">
<span data-measureme="1">
<span>hi</span>
</span>
</div>
Example that does not work in jsFiddle .
Something like
div > span:before {
content: parent.title;
}
Is it possible to do this with CSS? How / Why?
On browser compatibility, I just need it to run in the latest version of Chrome and Firefox. But if there is a solution that works in any browser it would be cool.