I'm trying to make it so certain text and images on an HTML page cannot be highlighted with the cursor, so it appears as if they're a part of the background.
+1
A:
First of all if I would like to know the intention behind this. If this is to prevent the user from copying your text and images then I think its impossible for you to make this happen. Once it is rendered to the client browser area then the whole thing comes under the control of the user.
For images not to be highlighted make them as background.
You can also place a transparent div on top of the area where you don't want the selection to occur. Position the div so that they will appear on top of the element with a higher stacking order. For a greater stacking order you can use the z-index property.
rahul
2009-09-23 05:06:08
A:
Julian Aubourg
2009-09-23 05:08:16
Thanks! I searched but didn't find that in the results since it used "unselectable" instead of "unhighlightable".
Omer Zach
2009-09-23 05:09:24