Disable IMG Highlighting

About the template and stylesheet - and changing the menu
Post Reply
flukey92
Posts: 89
Joined: Thu Aug 11, 2011 9:39 am
Location: Bedford, UK
Contact:

Disable IMG Highlighting

Post by flukey92 » Tue Feb 07, 2012 4:10 pm

Hey all, im quite a novice at css and templates i just heavily mod the website that i have,
one code i have come across which makes the whole website look alot more professional is by putting this in the stylesheet

Code: Select all

img {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
border:0;
} 
its main use is for when the end user may copy text off your website. or have to highlight it for any purpose. below are two examples, one with, one without.
[ external image ]

courtesy of http://stackoverflow.com/questions/5225 ... js-or-html
RJS Electronics Ltd - LED Push Switches, LCD Programmable Keys, Anti Vandal Push Buttons, Relays, Custom Cable Assemblies
Visit my Web Hosting / Design website here - www.flukedesigns.co.uk

Post Reply