5
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 doesn’t work in jsFiddle.
Something like
div > span:before {
content: parent.title;
}
Is it possible to do this with CSS? How/Why?
Regarding browser compatibility, I just need it to run on the latest version of Chrome and Firefox. But if there is a solution that works in any browser would be nice.
I did not understand the reason of Downvote’s, I put +1 because I believe that this issue is not bad.
– Paulo Roberto Rosa
I personally find the question good and simple and that serves to answer other questions that were more confused, I edited the title, because I believe that maybe the downvotes were the difficulty to understand and also I leave a +1
– Guilherme Nascimento