"Tabs"
Bootstrap 3.0.0 Snippet by maritonsc54

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="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<h1>Tabs</h1>
<main>
<input id="tab1" type="radio" name="tabs" checked>
<label for="tab1">Tab1</label>
<input id="tab2" type="radio" name="tabs">
<label for="tab2">Tab2</label>
<input id="tab3" type="radio" name="tabs">
<label for="tab3">Reports</label>
<input id="tab4" type="radio" name="tabs">
<label for="tab4">Tab4</label>
<section id="content1">
<p>
1111111111111
</p>
</section>
<section id="content2">
<p>
22222222222222
</p>
</section>
<section id="content3">
<p>
3333333333333333333
</p>
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://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
body {
font: 14px/1 'Open Sans', sans-serif;
color: #555;
background: #eee;
}
main {
min-width: 320px;
max-width: 1100px;
padding: 20px;
margin: 0 auto;
background: #fff;
}
section {
display: none;
padding: 20px 0 0;
border-top: 1px solid #ddd;
}
input {
display: none;
}
label {
display: inline-block;
margin: 0 0 -1px;
padding: 15px 25px;
font-weight: 600;
text-align: center;
color: #bbb;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: