"Radio Button Tabs"
Bootstrap 2.3.2 Snippet by msurguy

<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/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"> <div class="span12"> <p class="lead">Bare minimum radio button tabs example:</p> <div id="tab" class="btn-group" data-toggle="buttons-radio"> <a href="#prices" class="btn active" data-toggle="tab">Prices</a> <a href="#features" class="btn" data-toggle="tab">Features</a> <a href="#requests" class="btn" data-toggle="tab">Requests</a> <a href="#contact" class="btn" data-toggle="tab">Contact</a> </div> <div class="tab-content"> <div class="tab-pane active" id="prices">Prices content</div> <div class="tab-pane" id="features">Features Content</div> <div class="tab-pane" id="requests">Requests Content</div> <div class="tab-pane" id="contact">Contact Content</div> </div> <hr> <p class="lead">More complex content example:</p> <div id="tab" class="btn-group" data-toggle="buttons-radio"> <a href="#prices2" class="btn btn-large btn-info active" data-toggle="tab">Prices</a> <a href="#features2" class="btn btn-large btn-info" data-toggle="tab">Features</a> <a href="#requests2" class="btn btn-large btn-info" data-toggle="tab">Requests</a> <a href="#contact2" class="btn btn-large btn-info" data-toggle="tab">Contact</a> </div> <div class="tab-content"> <div class="tab-pane active" id="prices2"> <br> <p class="lead">Prices content</p> <div class="row"> <div class="span3"> <img src="http://placehold.it/200x200"> </div> <div class="span9"> <p>There are now two rates of Capital Gains Tax (CGT) for individuals. A standard rate of 18% and a higher rate of 28%. The annual exempt amount is still £10,100 for ’10-’11. For more information on CGT please see the factsheet we have put together, which is available to download below.</p> </div> </div> </div> <div class="tab-pane" id="features2"> <br> <p class="lead">Features content</p> <div class="row"> <div class="span6"> <p>For a full list of our services including support and consultancy for start-up businesses please see the Our Services section of the website. Alternatively if you have a specific service or question in mind please don’t hesitate to contact us to discuss this using the contact details on the Contact Us page of the site.</p> </div> <div class="span6"> <img src="http://placehold.it/400x400"> </div> </div> </div> <div class="tab-pane" id="requests2"> <br> <p class="lead">Requests content</p> <div class="row"> <div class="span3"> <img src="http://placehold.it/200x200"> </div> <div class="span5"> <p>There are now two rates of Capital Gains Tax (CGT) for individuals. A standard rate of 18% and a higher rate of 28%. The annual exempt amount is still £10,100 for ’10-’11. For more information on CGT please see the factsheet we have put together, which is available to download below.</p> </div> <div class="span4"> <img src="http://placehold.it/400x200"> </div> </div> </div> <div class="tab-pane" id="contact2"> <br> <p class="lead">Contact Us</p> <form class="well span8"> <div class="row"> <div class="span3"> <label>First Name</label> <input type="text" class="span3" placeholder="Your First Name"> <label>Last Name</label> <input type="text" class="span3" placeholder="Your Last Name"> <label>Email Address</label> <input type="text" class="span3" placeholder="Your email address"> <label>Subject <select id="subject" name="subject" class="span3"> <option value="na" selected="">Choose One:</option> <option value="service">General Customer Service</option> <option value="suggestions">Suggestions</option> <option value="product">Product Support</option> </select> </label> </div> <div class="span5"> <label>Message</label> <textarea name="message" id="message" class="input-xlarge span5" rows="10"></textarea> </div> <button type="submit" class="btn btn-primary pull-right">Send</button> </div> </form> </div> </div> </div> </div> </div>

Related: See More

Questions / Comments:

I have been searching and searching for a check box styling that looks like "Bare minimum radio button tabs". Difference being that I need to be able to select more than one option.
I also need a slide-button solution for more than one radio button. I can only find slide-button styling for radio buttons like on / off (2 options). I need 5 different options where only 1 of the 5 can be selected.

Brian Fløe () - 5 years ago - Reply 1

Toggle/Switch multiple radio inputs:

pepperstreet () - 5 years ago - Reply 1

thanks but not working for bootstrap 3

Jessu Peterson () - 3 years ago - Reply -1

This is not "radio button snippet", this is bootstrap "tab snippet". You are using wrong title. BTW, thanks for your effort in order to supply us with a nice code snippet.

Bootstrap snipper () - 3 years ago - Reply -1

The "radio" <input type="radio"/> is missing!?

Bubelbub () - 4 years ago - Reply -1

Nice work. Anyone know how to adapt this for bootstrap 3 though?

Nick () - 5 years ago - Reply -1

Awesome guys - any idea why the window scrolls to the top of the tabbed content??

In the 'Bare Minimum' example, it seems to be treating the # as an anchor so the page scrolls until the #features tag is at the top... any thoughts??

dannyrus () - 5 years ago - Reply -1

Add a row class just in the form class. You will avoid that ugly left margin:

<form class="well span8">
<div class="row">


eSSe () - 5 years ago - Reply -1


maxsurguy () - 5 years ago - Reply -1