How do you put a (transparent) image over text to keep it from being selected?
I want my students to type what they see, not just copy/paste.
I’m not worried about them viewing source and copy/pasting from there – if they’re that savvy I don’t need to worry about them knowing the material.
I don’t believe that this is a great idea, and nor will it work particularly well. Also, without seeing what elements you’re using, I’m going to guess, with the following:
CSS:
JS Fiddle demo.
A slightly easier way:
JS Fiddle demo.
A slightly more reliable way (that doesn’t rely on updated/’modern’ browsers, but which isn’t requested in your question, as it uses JavaScript:
JS Fiddle demo.