Last updated 2023-05-23 06:05:01

How To Create A Block Button In Bootstrap 5 (full Width Button)

Bootstrap 5 [↗] no longer uses the btn-block class to create full-width buttons.

To create a full-width button you will need to wrap the button in a tag that has a grid class i.e.: d-grid (grid display class)

01: <div class="d-grid"> 02: <button type="submit" class="btn">Submit</button> 03: </div>

Here is another article you might like 😊 "Diary Of Insights: A Documentation Of My Discoveries"