Saturday 12 September 2015

How to Disable Selection with CSS In Blogger


How to Disable Function Selection with CSS - Preventing people doing the selection of text in a blog which is very necessary , Their are not a few people who take or steal your writing without permission .

This time I'm going to try to prevent or at least make it difficult for others to select text on our blog by utilizing CSS function .



Here is the application of CSS and HTML to prevent text selection in the article on your blog .
First , go to Blogger >> Templates >> Click Edit HTML >> Apply code below just before ]]></b:skin> or </style>
.post-body{
 -webkit-user-select: none;
 -khtml-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
 user-select: none;
}
pre{
 -webkit-user-select: text;
 -khtml-user-select: text;
 -moz-user-select: text;
 -ms-user-select: text;
 user-select: text;
}
Then save the template .

No comments:

Post a Comment