"Pure css tabs"
Bootstrap 3.3.0 Snippet by annilshinde

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/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/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="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h1 class="text-center">Pure Css Tabs</h1>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="panel panel-primary">
<div class="panel-heading">
<h2 class="panel-title">
Select the following Tab
</h2>
</div>
<div class="panel-body">
<form>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<input type="radio" name="action" id="green" value="green" checked />
<label for="green" class="btn btn-success">Green</label>
<input type="radio" name="action" id="red" value="red" />
<label for="red" class="btn btn-danger">Red</label>
<input type="radio" name="action" id="yellow" value="yellow" />
<label for="yellow" class="btn btn-warning">Yellow</label>
<div id="green" class="shzow-hide">
<div class="panel panel-success">
<div class="panel-body">
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
#green {
display: none;
padding: 10px;
background-color: #6f6;
}
#red {
display: none;
padding: 10px;
background-color: #f44;
}
#yellow {
display: none;
padding: 10px;
background-color: yellow;
}
input[value="green"]:checked ~ #green {
display: block;
}
input[value="red"]:checked ~ #red {
display: block;
}
input[value="yellow"]:checked ~ #yellow {
display: block;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
/** no java script req.**/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: