Last active
November 16, 2017 20:11
-
-
Save roz0n/82f84714a874f546d3182a548ad56781 to your computer and use it in GitHub Desktop.
Bootstrap 4a Accordion (Collapse) Table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="table-responsive"> | |
<table class="table table-hover"> | |
<thead> | |
<tr> | |
<th>Name</th> | |
<th>Email</th> | |
<th>Published</th> | |
<th>Comment Date</th> | |
</tr> | |
</thead> | |
<tbody> | |
<!-- Begin table row --> | |
<tr data-target="#accordion" data-toggle="collapse"> | |
<!-- table-cells here --> | |
</tr> | |
<tr> | |
<td class="accordion-cell" colspan="5"> | |
<div class="collapse" id="accordion" role="tabpanel"> | |
HIDDEN STUFF | |
</div> | |
</td> | |
</tr><!-- / table row --> | |
<!-- Begin table row --> | |
<tr data-target="#accordion-2" data-toggle="collapse"> | |
<!-- table-cells here --> | |
</tr> | |
<tr> | |
<td class="accordion-cell" colspan="5"> | |
<div class="collapse" id="accordion-2" role="tabpanel"> | |
HIDDEN STUFF | |
</div> | |
</td> | |
</tr><!-- / table row --> | |
</tbody> | |
</table> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.table-responsive { | |
.table { | |
.accordion-cell { | |
padding: 0 !important; | |
border: 0; | |
.in { | |
border-top: 1px solid #eceeef; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment