"CSS Tabs"
Bootstrap 3.3.0 Snippet by derekbtw

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="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h1>CSS TABS</h1>
<ul class=tabs>
<li>
<input type=radio name=tabs id=tab1 checked>
<label for=tab1>Sales</label>
<div id=tab-content1 class=tab-content>
<table>
<tr>
<th>
Day
</th>
<th>
Open
</th>
<th>
Closed
</th>
</tr>
<tr>
<td>Monday — Saturday</td>
<td>8:30 AM</td>
<td>8:00 PM</td>
</tr>
<tr>
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
* {
margin: 0;
padding: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
padding: 20px;
color: #333;
background: #eee;
}
h1 {
font-weight: normal;
font-size: 40px;
margin: 20px 0 100px 10px;
}
.tabs {
width: 390px;
float: none;
list-style: none;
position: relative;
margin: 80px 0 0 10px;
}
.tabs li {
float: left;
display: block;
width: 33.33%;
margin-right: 0;
text-align: center;
}
.tabs li:first-child {
border-right: 1px solid #3d94ff;
height: 50px;
margin-bottom: -40px;
}
.tabs li:last-child {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: