Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Can I Make HTML Elements Unhighlightable? [duplicate]

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.

like image 505
Omer Zach Avatar asked Sep 23 '09 05:09

Omer Zach


People also ask

How do I make text unselectable in HTML CSS?

In our HTML file, we will assign some text to the “<p>” tag and mention it inside the <body> tag. In the CSS file, simply utilize the “user-select” property with the value “none”. This will make the text unselectable respectively.

How do you make an image Unselectable in CSS?

Complete HTML/CSS Course 2022 On double click on a text or image, it is highlighted (selected). The user select property can be used to prevent this. By setting this property to none, we can prevent our image from being selected (highlighted).


1 Answers

Is there a way to make text unselectable on an HTML page?

like image 145
Julian Aubourg Avatar answered Oct 20 '22 01:10

Julian Aubourg