Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <label for="trigger">Toggle box</label>
- <div>
- OTHER HTML CONTENT
- </div>
- <input id="trigger" type="checkbox">
- <div class="box">
- SHOW / HIDE BOX
- </div>
- .box {
- display: none;
- background: #ccc;
- width: 200px;
- height: 100px;
- }
- #trigger {
- display: none;
- }
- #trigger:checked + .box {
- display: block;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement