Answers for "bootstrap link and button group"

0

bootstrap href button

<a href="#" class="btn btn-primary btn-lg disabled" role="button" aria-disabled="true">Primary link</a>
<a href="#" class="btn btn-secondary btn-lg disabled" role="button" aria-disabled="true">Link</a>
Posted by: Guest on April-14-2021
0

bootstrap button group

<!-- Basic example -->
<div class="btn-group" role="group" aria-label="Basic example">
   <button type="button" class="btn btn-primary">Left</button>
   <button type="button" class="btn btn-primary">Middle</button>
   <button type="button" class="btn btn-primary">Right</button>
</div>

<!-- Outlined styles -->
<div class="btn-group" role="group" aria-label="Basic outlined example">
   <button type="button" class="btn btn-outline-primary">Left</button>
   <button type="button" class="btn btn-outline-primary">Middle</button>
   <button type="button" class="btn btn-outline-primary">Right</button>
</div>

<!-- Checkbox and radio button groups -->
<div
   class="btn-group"
   role="group"
   aria-label="Basic checkbox toggle button group"
>
   <input type="checkbox" class="btn-check" id="btncheck1" autocomplete="off" />
   <label class="btn btn-outline-primary" for="btncheck1">Checkbox 1</label>

   <input type="checkbox" class="btn-check" id="btncheck2" autocomplete="off" />
   <label class="btn btn-outline-primary" for="btncheck2">Checkbox 2</label>

   <input type="checkbox" class="btn-check" id="btncheck3" autocomplete="off" />
   <label class="btn btn-outline-primary" for="btncheck3">Checkbox 3</label>
</div>

<!-- Button toolbar -->
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
   <div class="btn-group me-2" role="group" aria-label="First group">
      <button type="button" class="btn btn-primary">1</button>
      <button type="button" class="btn btn-primary">2</button>
      <button type="button" class="btn btn-primary">3</button>
      <button type="button" class="btn btn-primary">4</button>
   </div>
   <div class="btn-group me-2" role="group" aria-label="Second group">
      <button type="button" class="btn btn-secondary">5</button>
      <button type="button" class="btn btn-secondary">6</button>
      <button type="button" class="btn btn-secondary">7</button>
   </div>
   <div class="btn-group" role="group" aria-label="Third group">
      <button type="button" class="btn btn-info">8</button>
   </div>
</div>
Posted by: Guest on March-01-2021

Browse Popular Code Answers by Language