---
title: "how to remove browsers background selection color for images and text?"  
description: "how to remove browsers background selection color for images and text?"  
author: "Royce Roy"  
published: 2013-02-26  
updated: 2013-02-26  
canonical: https://www.mindstick.com/forum/613/how-to-remove-browsers-background-selection-color-for-images-and-text  
category: "css-css3"  
tags: ["css-css3"]  
reading_time: 1 minute  

---

# how to remove browsers background selection color for images and text?

Hi Guys

I have [display images](https://www.mindstick.com/forum/147/how-to-display-images-in-asp-dot-net) in my webpage and these image will be change on over [image click](https://www.mindstick.com/forum/34670/how-can-i-edit-row-data-using-single-row-image-click-in-vb-dot-net-data-gridview). [Problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) is that, when user click (mostly continue) on image for change, image's [background](https://www.mindstick.com/articles/65/how-to-change-background-color-of-tab-control-in-c-sharp) (in blue color) are selected in every browser.

This problem will be same for [checkbox](https://www.mindstick.com/articles/291/how-should-use-checkbox-control-in-vb-dot-net), [dropdown](https://www.mindstick.com/articles/263/ajax-toolkit-dropdownextender-in-asp-dot-net), [radio button](https://www.mindstick.com/articles/12743/radio-button-in-android) and any clickable [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control) . This is very irritable. Please help me!

Thanks

## Replies

### Reply by AVADHESH PATEL

Hi Royce!

Use below css, that prievnt to select background on click. use "unselectable" class where you control are difine.

.unselectable\
{\
-webkit-user-select: none;\
-khtml-user-drag: none;\
-khtml-user-select: none;\
-moz-user-select: none;\
-moz-user-select: -moz-none;\
-ms-user-select: none;\
-o-user-select: none;\
user-select: none;\
}

way of using

<div class="unselectable">\
<input type="checkbox" id="chk" style="width: 25px; height: 25px; background-color:#E5E5E5;" />\
<label for="chk" id="lblChk" style="vertical-align:super;">\
Product</label>\
</div>


---

Original Source: https://www.mindstick.com/forum/613/how-to-remove-browsers-background-selection-color-for-images-and-text

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
