This method is more fancy even though it requires more tags but it works the best since it allows us to create a toggle effect, i.e., expand on click and then collapse when clicking again.
Livewirez.blogspot.com. This s to test the code for fancy toggle or expanded click event.
Thanks for dropping by. Just simply say thank you.
Thanks for dropping by. Just simply say thank you.
Here's the code:
<style>Demo - the name of label to click
.checked-selector {display: none;}
:checked ~ .checked-selector {display: block;}
input.hidden[type=checkbox] {position: absolute;left: -999em;}
</style>
<label for="toggle-hidden">Demo</label>
<input class="hidden" id="toggle-hidden" type="checkbox" />
<div class="checked-selector">
Livewirez.blogspot.com. All content here.
</div>
With Red Color - is the content
How to install:
Just simply place that code inside HTML box.
Post a Comment