chris_17
Member
So, I was thinking with the new pseudo classes what's stopping you from creating more interactive hover effects using the content attribute and save you from using <span> to show the hover state etc.
Screen readers would pick up the text in the <p> tags and then we just use the hover and before pseudo classes to show the new text.
Could it be used or is just horribly non-semantic and inaccessible?!?!
Here a JSFiddle anyways with what I mean.
Edit this Fiddle - jsFiddle - Online Editor for the Web (JavaScript, MooTools, jQuery, Prototype, YUI, Glow and Dojo, HTML, CSS)
Chris
Screen readers would pick up the text in the <p> tags and then we just use the hover and before pseudo classes to show the new text.
Could it be used or is just horribly non-semantic and inaccessible?!?!
Here a JSFiddle anyways with what I mean.
Edit this Fiddle - jsFiddle - Online Editor for the Web (JavaScript, MooTools, jQuery, Prototype, YUI, Glow and Dojo, HTML, CSS)
Chris