Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<nav class="navbar navbar-default">

    <div class="container-fluid">

        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Bootstrap - Componentes Básicos</a>
        </div>

        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li class="active"><a href="#">Link 1</a></li>
                <li><a href="#">Link 2</a></li>
                <li><a href="#">Link 3</a></li>
            </ul>
        </div>

    </div>

</nav>
<div class="container-fluid">
    <div class="row">
      <ul class="nav nav-tabs" role="tablist">
          <li role="presentation" class="active"><a href="#tab1" role="tab" data-toggle="tab">Botões</a></li>
          <li role="presentation"><a href="#tab2" role="tab" data-toggle="tab">Tabelas</a></li>
          <li role="presentation"><a href="#tab3" role="tab" data-toggle="tab">Formulários</a></li>
          <li role="presentation"><a href="#tab4" role="tab" data-toggle="tab">Ícones</a></li>
          <li role="presentation"><a href="#tab5" role="tab" data-toggle="tab">Balão de Dicas</a></li>
      </ul>

      <div class="tab-content">
          <div role="tabpanel" class="tab-pane fade in active" id="tab1">
              <h4>Tipos diferentes</h4>

              <!-- BOTÕES -->
              <button type="button" class="btn btn-default">Padrão</button>

              <button type="button" class="btn btn-primary">Primário</button>

              <button type="button" class="btn btn-success">Successo</button>

              <button type="button" class="btn btn-info">Info</button>

              <button type="button" class="btn btn-warning">Atenção</button>

              <button type="button" class="btn btn-danger">Perigo</button>

              <button type="button" class="btn btn-link">Link</button>

              <button type="button" class="btn" disabled>Desativado</button>



              <h4>Tamanhos diferentes</h4>

              <button type="button" class="btn btn-primary btn-lg">Botão Grande</button>

              <button type="button" class="btn btn-primary">Botão padrão</button>

              <button type="button" class="btn btn-primary btn-sm">Botão pequeno</button>

              <button type="button" class="btn btn-primary btn-xs">Botão muito pequeno</button>



              <h4>Botão com agrupamento</h4>

              <div class="btn-group">
                  <button type="button" class="btn btn-danger">Ação</button>
                  <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">
                      <span class="caret"></span>
                  </button>
                  <ul class="dropdown-menu">
                      <li><a href="#">Ação 1 </a></li>
                      <li><a href="#">Ação 2 </a></li>
                      <li><a href="#">Ação 3</a></li>
                  </ul>
              </div>
          </div>
          <div role="tabpanel" class="tab-pane fade" id="tab2">
              <h4>Tabela Simples</h4>

              <div class="table-responsive table-container">
                  <table class="table table-hover">
                      <thead>
                          <tr>
                              <th>#</th>
                              <th>Cabeçalho da Tabela</th>
                              <th>Cabeçalho da Tabela</th>
                              <th>Cabeçalho da Tabela</th>
                          </tr>
                      </thead>
                      <tbody>
                          <tr>
                              <th scope="row">1</th>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                          </tr>
                          <tr>
                              <th scope="row">2</th>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                          </tr>
                          <tr>
                              <th scope="row">3</th>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                          </tr>
                      </tbody>
                  </table>
              </div>

              <h4>Condensada, com efeito on Hover</h4>

              <div class="table-responsive table-container">
                  <table class="table table-hover table-condensed table-striped">
                      <thead>
                          <tr>
                              <th>#</th>
                              <th>Cabeçalho da Tabela</th>
                              <th>Cabeçalho da Tabela</th>
                              <th>Cabeçalho da Tabela</th>
                          </tr>
                      </thead>
                      <tbody>
                          <tr>
                              <th scope="row">1</th>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                          </tr>
                          <tr>
                              <th scope="row">2</th>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                          </tr>
                          <tr>
                              <th scope="row">3</th>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                              <td>Célula da Tabela</td>
                          </tr>
                      </tbody>
                  </table>
              </div>
          </div>
          <div role="tabpanel" class="tab-pane fade" id="tab3">
              <form>

                <div class="form-group">
                    <label for="input_text">Primeiro nome</label>
                    <input type="text" class="form-control" id="input_text" placeholder="Nome">
                </div>
                <div class="form-group">
                    <label for="input_email">Endereço de email</label>
                    <input type="email" class="form-control" id="input_email" placeholder="Email">
                </div>
                <div class="form-group">
                    <label for="input_password">Senha</label>
                    <input type="password" pattern="[0-9]*" class="form-control" id="input_password" placeholder="Senha">
                </div>

                <div class="checkbox">
                    <label>
                        <input type="checkbox" checked> Checkbox
                    </label>
                </div>

                <div class="radio">
                    <label>
                        <input type="radio" name="optionsRadios" value="option1" checked>
                        Escolha 1
                    </label>
                    <label>
                        <input type="radio" name="optionsRadios" value="option2">
                        Escolha 2
                    </label>
                </div>

            </form>
          </div>
          <div role="tabpanel" class="tab-pane fade" id="tab4">
            <span class="glyphicon glyphicon-asterisk" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-euro" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-eur" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-minus" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-cloud" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-envelope" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-glass" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-music" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-heart" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-star" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-star-empty" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-film" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-th" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-zoom-in" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-zoom-out" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-signal" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-home" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-file" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-time" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-road" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-download" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-upload" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-inbox" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-play-circle" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-repeat" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-flag" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-headphones" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-volume-off" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-volume-down" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-volume-up" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-qrcode" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-barcode" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-tag" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-book" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-bookmark" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-print" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-camera" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-font" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-bold" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-italic" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-text-height" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-text-width" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-align-left" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-align-center" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-align-right" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-align-justify" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-list" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-indent-left" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-indent-right" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-facetime-video" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-map-marker" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-adjust" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-tint" aria-hidden="true"></span>
            <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
          </div>
          <div role="tabpanel" class="tab-pane fade" id="tab5">
            <h4>Balão de Dicas</h4>

            

            <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Tooltip on <strong>top</strong>">Acima</button>

            <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Tooltip on <strong>bottom</<strong>">Abaixo</button>

            <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="right" title="Tooltip on <strong>right</strong>">Direita</button>
            
            <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="Tooltip on <strong>left</strong>">Esquerda</button>




            <h4>Popover</h4>

            <button type="button" class="btn btn-danger" data-toggle="popover" title="Título" data-content="Contéudo do <strong>Popover</strong>!">Clique aqui!</button>


          </div>
      </div>
    </div>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
              
            
!

CSS

              
                
              
            
!

JS

              
                $(function () {
     $('[data-toggle="tooltip"]').tooltip({
            container: 'body',
            html: true
        });

        $('[data-toggle="popover"]').popover({
            container: 'body',
            html: true
        })
    })

              
            
!
999px

Console