- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Make the button size extra small with Bootstrap
Use the .btn-xs class to create a button size extra small than the standard button.
You can try to run the following code to make the size of a button extra small
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <meta name = "viewport" content = "width = device-width, initial-scale = 1"> <link rel = "stylesheet" href = "https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"> <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src = "https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> </head> <body> <p>The following are extra small buttons:</p> <button type = "button" class = "btn btn-primary btn-xs"> Exra Small Primary button </button> <button type = "button" class = "btn btn-default btn-xs"> Extra Small button </button> </body> </html>
- Related Articles
- Make the button size small with Bootstrap
- Create an extra small button with Bootstrap
- Create an extra small button group with Bootstrap
- Make the button size large with Bootstrap
- Create a small button with Bootstrap
- Create a small button group with Bootstrap
- Use dropdowns with any button size using Bootstrap
- Make a Bootstrap button group appear vertically stacked
- Small input field with Bootstrap
- Small input group with Bootstrap
- Split Button Dropdowns with Bootstrap
- Nest button groups with Bootstrap
- Disable a button with Bootstrap
- Create block level button with Bootstrap
- Create a Button Group with Bootstrap

Advertisements