Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.

How do you make a small/compact table using Bootstrap?

Experience Level: Junior
Tags: Bootstrap 4


In order to create a small/compact table, use standard html tags <table>, <tr>, <th> and <td>. Then add a class table table-sm to the <table> tag.

Small Bootstrap table
<table class="table table-sm">


No Comments Yet.
Be the first to tell us what you think.
Bootstrap for beginners
Bootstrap for beginners

Are you learning Bootstrap ? Try our test we designed to help you progress faster.

Test yourself