"Accordion"
Bootstrap 4.1.1 Snippet by kanikamadaan

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="row coE-accordion">
<div class="col">
<h2>Open <b>Multiple</b></h2>
<ul class="tabs">
<li class="tab">
<input type="checkbox" id="chck1">
<label class="tab-label" for="chck1">Item 1</label>
<div class="tab-content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
</div>
</li>
<li class="tab">
<input type="checkbox" id="chck2">
<label class="tab-label" for="chck2">Item 2</label>
<div class="tab-content">
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
</div>
</li>
<li class="tab">
<input type="checkbox" id="chck3">
<label class="tab-label" for="chck3">Item 3</label>
<div class="tab-content">
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
</div>
</li>
</ul>
</div>
<div class="col">
<h2>Open <b>One</b></h2>
<ul class="tabs">
<li class="tab">
<input type="radio" id="rd1" name="rd">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700;900&family=Titillium+Web:wght@200;400;600;700;900&display=swap');
body {
height: 100%;
font-family: 'Source Sans Pro', sans-serif, 'FontAwesome' !important;
font-size: 14px;
color: #4e4e4e;
}
.coE-accordion h1 {
margin: 0;
line-height: 2;
text-align: center;
}
.coE-accordion h2 {
margin: 0 0 0.5em;
font-weight: normal;
color: #4bcd3e;
margin-bottom: 25px;
}
.coE-accordion input {
position: absolute;
opacity: 0;
z-index: -1;
}
.coE-accordion.row {
display: flex;
}
.coE-accordion.row .col {
flex: 1;
}
.coE-accordion.row .col:last-child {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: