- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
Create block level button with Bootstrap
To create a block level button, use the .btn-block class.
You can try to run the following code to add a block level button −
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 block level buttons:</p> <button type = "button" class = "btn btn-primary btn-lg btn-block"> Block level Primary button </button> <button type = "button" class = "btn btn-default btn-lg btn-block"> Block level button </button> </body> </html>
- Related Articles
- Create a block level button with Bootstrap
- Bootstrap block level help text
- Create a basic button with Bootstrap
- Create a large button with Bootstrap
- Create a small button with Bootstrap
- Create a Button Group with Bootstrap
- Create a block element with Bootstrap 4
- Create a small button group with Bootstrap
- Create a large button group with Bootstrap
- Create a yellow button (warning) with Bootstrap
- Create an extra small button with Bootstrap
- Create a blue button (primary) with Bootstrap
- Create a green button (success) with Bootstrap
- Create button in Bootstrap
- Create an extra small button group with Bootstrap

Advertisements