CSS Property Value How to - user-select: none; Remove Blue Overlay from Selected Images








Question

We would like to know how to user-select: none; Remove Blue Overlay from Selected Images.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.noSelect {<!-- w  w  w.j  a v  a2  s .co  m-->
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

img {
  height: 5em;
  width: 5em;
}
</style>
</head>
<body>
  <img class="noSelect" src="http://www.java2s.com/style/download.png" />
  <img src="http://www.java2s.com/style/download.png" />
</body>
</html>

The code above is rendered as follows: