Bootstrap snippet and html example. Responsive Buttons

Bootstrap 3.3.1 snippet "Responsive Buttons" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: responsive,buttons,css,html,code,bootstrap,snippet,btn-group

HTML code

Clean, semantic HTML that powers this Bootstrap 3.3.1 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.


                        
<div class="container btn-container">
    <div class="row">
       <div class="col-md-12">
            <h2>Bootstrap Responsive Buttons<p class="lead text-muted">Resize the browser to demonstrate</p></h2>
           	<button name="button" class="btn btn-default btn-responsive">Default</button>
            <button name="button" class="btn btn-primary btn-responsive">Primary</button>
         	<button name="button" class="btn btn-info btn-responsive">Info</button>
            <a class="btn btn-danger btn-responsive" href="#">Danger</a>
            <a class="btn btn-warning btn-responsive" href="#">Warning</a>
            <a class="btn btn-success btn-responsive" href="#">Success</a>
       </div> 
   </div>
   
    <div class="row">
       <div class="col-md-12">
            <div class="btn-group">
              <button class="btn btn-info btn-responsive">Left</button>
              <button class="btn btn-info btn-responsive">Middle</button>
              <button class="btn btn-info btn-responsive">Right</button>
            </div>
       </div>
   </div>
   
    <div class="row">
       <div class="col-md-12">
              <button class="btn btn-primary btn-sm btn-responsive">Small</button>
              <button class="btn btn-primary btn-responsive">Medium</button>
              <button class="btn btn-primary btn-lg btn-responsive">Large</button>
       </div>
    </div>
</div>                    

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 3.3.1 to keep the design, spacing, and responsiveness consistent.


                        
  
@media (max-width: 768px) {
  .btn-responsive {
    padding:2px 4px;
    font-size:80%;
    line-height: 1;
    border-radius:3px;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .btn-responsive {
    padding:4px 9px;
    font-size:90%;
    line-height: 1.2;
  }
}

.btn-container .row {
    margin-top:30px;
}			                                  

Similar snippets

Bootstrap example and template. Profile widget

Profile widget

Bootstrap example and template. Users Products todo

Users Products todo

Bootstrap example and template. simple user cards contact info

simple user cards contact info

Bootstrap example and template. Social post

Social post

Bootstrap example and template. find jobs cards

find jobs cards

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. unify buttons

unify buttons

Bootstrap example and template. bs4 Trending Articles

bs4 Trending Articles

FAQ

How do I use this snippet?

Include Bootstrap 3.3.1, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 3.3.1.

Bootstrap example and template. Responsive Buttons

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 2.2K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.3.1

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.3.1 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working