DEMO :
Your Content Here, Content you wish to be on the spoiler.
Step #1 , Create a post.
Step #2 , copy and paste this on your post :
Important Note : Make sure you are on HTML View not Compose View when you paste this and never go back to Compose View again, doing so will ruin the spoiler.
Suggestion : Add this spoiler on the last part of your writing so you can still edit things on Compose View.
Important Note : Make sure you are on HTML View not Compose View when you paste this and never go back to Compose View again, doing so will ruin the spoiler.
Suggestion : Add this spoiler on the last part of your writing so you can still edit things on Compose View.
CODE
<style type="text/css">
/* Visit www.thegreatowl.blogspot.com for more blogger tutorials */
.spoilerbutton {display:block; margin:5px 0;}
.spoiler {overflow:hidden; background: #f5f5f5;}
.spoiler > div {-webkit-transition: all 0.2s ease;-moz-transition: margin 0.2s ease;-o-transition: all 0.2s ease;transition: margin 0.2s ease;}
.spoilerbutton[value="Show"] + .spoiler > div {margin-top:-100%;} .spoilerbutton[value="Hide"] + .spoiler {padding:5px;} </style>
<input class="spoilerbutton" type="button" value="Show" onclick="this.value=this.value=='Show'?'Hide':'Show';">
<div class="spoiler"><div>
Your Content Here, Content you wish to be on the spoiler.
</div></div>
<style type="text/css">
/* Visit www.thegreatowl.blogspot.com for more blogger tutorials */
.spoilerbutton {display:block; margin:5px 0;}
.spoiler {overflow:hidden; background: #f5f5f5;}
.spoiler > div {-webkit-transition: all 0.2s ease;-moz-transition: margin 0.2s ease;-o-transition: all 0.2s ease;transition: margin 0.2s ease;}
.spoilerbutton[value="Show"] + .spoiler > div {margin-top:-100%;} .spoilerbutton[value="Hide"] + .spoiler {padding:5px;} </style>
<input class="spoilerbutton" type="button" value="Show" onclick="this.value=this.value=='Show'?'Hide':'Show';">
<div class="spoiler"><div>
Your Content Here, Content you wish to be on the spoiler.
</div></div>
Customization :
Yellow - Background color, use HEX color
Green - Refers to the word 'Show'
Aqua - Refers to the word 'Hide'
Note : When you want to add image inside the Spoiler use the < img > code in html.
Yellow - Background color, use HEX color
Green - Refers to the word 'Show'
Aqua - Refers to the word 'Hide'
Note : When you want to add image inside the Spoiler use the < img > code in html.