Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS What does this css code really do?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38398
    MarkTopper
    Member

    What does this code means and what does it?

      -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;

    #104026
    chrisburton
    Participant

    It means you can’t select. See here and try to highlight the text.

    #104028
    MarkTopper
    Member

    Thanks a lot.

    Also I just found this page:
    http://www.w3.org/TR/2000/WD-css3-userint-20000216#user-select

    #104154
    Chris Coyier
    Keymaster

    I thinnnnnk it’s been removed from the spec. Not sure though I’ll have to look. I do know that it’s a mess of inconsistent support that makes it largely unusable. I like the idea of it though. It’s something you’d use on like action icons or images or something so that they don’t get selected (since they are useless to select anyway) when you are trying to select text around them.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.