Results 1 to 3 of 3
  1. #1
    Senior Member chris_17's Avatar
    Join Date
    Jun 2009
    Location
    Newcastle
    Posts
    226
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What would be wrong with doing this?

    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
    Front-End Design, Development and Web Standards
    chrisborrowdale.co.uk
    @chrisborrowdale

  2. #2
    Junior Member
    Join Date
    Apr 2011
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Only possible problem I can see is that hiding text like that might upset Google if you get reported. Not sure, I'd be interested to hear what people think about this.

  3. #3
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Yes, think I'd agree with Alex. The text is accessible as you say but would be interesting to see how Google sees it. In principal though I think it is the kind of thing we should be at least experimenting with as developers. Not sure about client/production sites just yet though.

Similar Threads

  1. Am i using the wrong software?!
    By damienk in forum Adobe Forum:
    Replies: 4
    Last Post: 11-28-2011, 10:48 AM
  2. What's wrong with people?....
    By bigdave in forum Printing & Print Design Forum:
    Replies: 20
    Last Post: 04-19-2011, 06:56 PM
  3. When website design goes wrong!
    By Boss Hog in forum Website Design Forum:
    Replies: 12
    Last Post: 06-20-2009, 03:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •