Customizable Spoiler Boxes
AmethystAndAnkh
- Created
- 3 years, 7 months ago
- Creator
- AmethystAndAnkh
- Favorites
- 99
Profile
Information and Instructions
This is customizable, bootstrapped spoiler box code. It uses bootstrap cards for the design as that seems fitting for a spoiler box. If you're savvy with CSS/bootsrap, you can strip the design down to whatever you like. It's been edited so that free users can use it and doesn't require the CSS input area to work.
If you are unfamiliar with my code style but understand CSS and HTML well enough, please read here before continuing on. It can help you better understand my code for customizing it to your own needs or desires.
It is important to note that you can have more than one spoiler box on your page. Have as many as you like. However, each spoiler box must have its own unique "name". This means the div id and any references starting with #.
This section of code is what I mean. I'll colourfully bold the terms that must be unique to each different spoiler box you wish to have on one page.
If you are unfamiliar with my code style but understand CSS and HTML well enough, please read here before continuing on. It can help you better understand my code for customizing it to your own needs or desires.
It is important to note that you can have more than one spoiler box on your page. Have as many as you like. However, each spoiler box must have its own unique "name". This means the div id and any references starting with #.
This section of code is what I mean. I'll colourfully bold the terms that must be unique to each different spoiler box you wish to have on one page.
<div class="card card-outline-danger" style="padding:10px;margin-bottom:20px;overflow:hidden;">
<h3 class="card-inverse card-danger card-header" style="font-size:20px;padding:10px;"><a href="#spcard" data-toggle="collapse" data-target="#spcard" class="btn-block"style="color:WHITE;text-decoration:none;">spcard</a></h3>
<div id="spcard" class="collapse">
Recent Images
No images.