Advantages of this CSS:
- No javascript .So, It does not affect your blogs load time.
- It works on all major browsers.
- You can use this css in all type of blog niche.
How to add this CSS to your blog ?
- Login to Blogger > Dashboard
- Click on Drop Down Menu and select Template
- Backup your Template before making any changes to your blog
- Now Click on Edit HTML > Proceed
- Press Ctrl + F and search the code shown below.
]]></b:skin>
- Paste below codes above it.
.post-body {-webkit-touch-callout: none; -khtml-user-select: none; -moz-user-select: -moz-none; -ms-user-select: none; user-select: none; text-align: justify;} blockquote {-webkit-touch-callout: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;}
Editing CSS
Replace blockquote with your html tag to which you use to display the codes.Example:I am using blockquote tag to highlight the codes (i.e)<blockquote>
code goes here....
</blockquote>
So, I used blockquote tag in above css.If your using something <codeview> your text </codeview> ,You need to replace blockquote with codeview.Now your css codes will look like,
.post-body {-webkit-touch-callout: none; -khtml-user-select: none; -moz-user-select: -moz-none; -ms-user-select: none; user-select: none; text-align: justify;} codeview {-webkit-touch-callout: text; -khtml-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;}
- Now save the template .
Nice Post Durai..Will this css prevent my Codes also from being copied??
ReplyDeleteTop 5 Blogger Widgets OF 2013
http://prohackertools.blogspot.com/2013/03/top-5-best-blogger-widgets-of-2013.html
http://mahorviicons.blogspot.com/
Deletewelldone
ReplyDeletemust check this Click Here
http://mahorviicons.blogspot.com
Brilliant work, I post your clone templates here with the link back of your blog: http://www.bloggerheroe.com/2013/02/professional-blogger-templates.html
ReplyDeleteBest Regards:
http://www.bloggerheroe.com/
Thank you Adrian.
DeleteNot that I'm saying you copied this or I don't like this post, but to be truthful I've already seen the trick somewhere, of-course it didn't work but your's do. So Congrats from me...hehehe ;)
ReplyDeleteJust a little request; when someone tries to copy from our site how to add a popup right after the try (ie. Copying is disabled on this page to stop plagiarism )<- something like that, and also if we can customize the popup. ThANKS Learned a lot From you.
DeleteThis comment has been removed by the author.
ReplyDeleteDear Durai Sankar Kindly stop distributing the mbt v2.0 template because they are reporting the blogs which are distributing the clones of their template to DMCA and this can cause your blog to be deleted
ReplyDeletehello,can u please share your template please?
ReplyDeleteNice css guidelines.
ReplyDelete
ReplyDeleteThank you for what you think in my blog
http://bilokr.blogspot.com/
Thank you my brother adavhraeah
Not working with my template, Here it is
ReplyDeletePremiumISM
http://premiumism.blogspot.com
DeletePremiumISM
how about disable tynt only on blockquote ? Would you make it ?
ReplyDeletewhy cant work in my blog? if I use your code, my document (all the text) also can select and copy. How to make the copy paste is disable to only for code or blockquote?
ReplyDeletecan you give example on how it's used as ur description is some what obsure
ReplyDeleteThanks for sharing such kind of nice and wonderful collection......Nice post Dude keep it up.
ReplyDeleteI have appreciate with getting lot of good and reliable and legislative information with your post......
web design quote
Awesome Post
ReplyDeleteSimple, Quick and good info
Do Visit http://she-toldme.blogspot.com/
really nice, going to implement it on my blog, anyway thanx dude
ReplyDeletethx
ReplyDeletehttp://sikmentech.blogspot.com
For Free Backgrounds...
ReplyDeleteOne time Visit Please....
http://www.allfreebackgrounds.blogspot.com/
Grateful to check out your website, I seem to be ahead to more excellent sites and I wish that you wrote more informative post for us. Well done work.
ReplyDeleteTotally agree with you.
ReplyDeleteVery nice post thank you very much
ReplyDeleteThank u Sir U have sloved my Problem....
ReplyDeletehttp://stuffskeleton.blogspot.com/
Awesome post Written by you,Thanks for sharing ,this was helpfull :)
ReplyDelete