"Tabs"
Bootstrap 3.0.0 Snippet by maritonsc54

<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> </section> <section id="content4"> <p> 4444444444444444444 </p> </section> </main>
@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; border: 1px solid transparent; } label:before { font-family: fontawesome; font-weight: normal; margin-right: 10px; } label[for*='1']:before { content: '\f2bc'; } label[for*='2']:before { content: '\f0ca'; } label[for*='3']:before { content: '\f02f'; } label[for*='4']:before { content: '\f1a9'; } label:hover { color: #888; cursor: pointer; } input:checked + label { color: #555; border: 1px solid #ddd; border-top: 2px solid orange; border-bottom: 1px solid #fff; } #tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3, #tab4:checked ~ #content4 { display: block; }

Related: See More


Questions / Comments: