compact table bootstrap

Bootstrap Basic Table
A basic Bootstrap table has a light padding and only horizontal dividers.

The .table class adds basic styling to a table
------------------------------------------------------------
Striped Rows
The .table-striped class adds zebra-stripes to a table

Bordered Table
The .table-bordered class adds borders on all sides of the table and cells
------------------------------------------------------------
Hover Rows
The .table-hover class adds a hover effect (grey background color) on table rows
------------------------------------------------------------
Condensed Table
The .table-condensed class makes a table more compact by cutting cell padding in half
------------------------------------------------------------
Contextual Classes
Contextual classes can be used to color table rows (<tr>) or table cells (<td>)

The contextual classes that can be used are:

Class		Description
.active		Applies the hover color to the table row or table cell
.success	Indicates a successful or positive action
.info		Indicates a neutral informative change or action
.warning	Indicates a warning that might need attention
.danger		Indicates a dangerous or potentially negative action
------------------------------------------------------------
Responsive Tables
The .table-responsive class creates a responsive table. The table will then scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, there is no difference

Sample code

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
  <h2>Bootstrap Table Example</h2>
  <table class="table -----------">  // try by adding different table class at this place => ("-----------")
    <thead>
      <tr>
        <th>Id</th>
        <th>Name</th>
        <th>Age</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>1</td>
        <td>Ram</td>
        <td>10</td>
      </tr>
      <tr>
        <td>2</td>
        <td>Shyam</td>
        <td>12</td>
      </tr>
      <tr>
        <td>3</td>
        <td>Ramesh</td>
        <td>13</td>
      </tr>
      <tr>
        <td>4</td>
        <td>Suresh</td>
        <td>11</td>
      </tr>
    </tbody>
  </table>
</div>

</body>
</html>

4.5
2
Alexqwx 105 points

                                    Condensed Table
The .table-condensed class makes a table more compact by cutting cell padding in half

4.5 (2 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
table bootstrap 4 css3 bootstrap 3.4.1. table class nbootstrap 3.3.7 table bootstrap 3 3 7 table example bootstrap table types bootstrap 3.3.7 table css responsive table bootstrap 3.3.4 table border bootstrap 3 table data bootstrap 3 bootstrap 5 tables exas bootstrap 3.5 table table bootstrap 4 classes bootstrap 3 table styles responsive table bootstrap css bootstrap page layout table tabler bootstrap 5 bootstrap 5 table small compact table template bootstrap 3 table header color bootstrap 3 boostrap 4 table table in bootstrap 5 bootstrap 3.3.7 tables table boostrap 3 bootstrap 4 table responsive boostrap specification table 20 table inline bootstrap bootstrap table 3.3 7 example bootstrap 3 table not responsive boostrap 3.4.1 table bootstrap 3 table snippet bootstrap 3 table css bootstrap 3.7 tables BOOTSSTRAP MINI TABLE bootstrap 3.3.6 table bootstrap 2.3.2 table bootstrap 3.3 table responsive striped bootstrap 3.3 table how to create 3 row table in bootstrap how to create 3 columns table in bootstrap bootstrap table cellstyle example bootstrap table in bootstrap 4 bootstrap 3 table unisci celle lines colors bootstrap 3 table table bootstrap 3.3.7 bootstrap table4.3 bootstrap 3 table with actions buttons bootstrap pretty table tfoot table bootstrap 3 mini table bootstrap bootstrap 3 css table css responsive table in bootstrap 4 TABLE BOOTSTRAP col 3 responsive table bootstrap class table of bootstrap bootstrap 3 responsive table responsive bootstrap 4.3.1 table bootstrap [email protected] getbootstrap table compact Small table bootstrap 5 bootrsrap 3 table table style bootstrap 5 table css bootstrap bootstrap table show text 3 characters table in bootstrap 3.3.6 table bootstrap 5 bootstrap table for mobile view table responsive bootstrap3 bootstrap 3 table no border bootstrap v3.3.7 table bootstrap table mobile view bootstrap 4.6 table row colums in bootstrap 3 table table td column bootstrap 3 bootsnipp table formats bootstrap 5 table responsive bootstrap v3 3.7 striped table style table bootstrap 3 bootstrap3 responsive table bootstrap 3 tables examples bootstrap 3 table responsive mobile 3 column table in bootstrap table mdbootstrap 3 bootstrap 3 table scroll bootstrap 3 table table-striped bootstrap 3 bootstrap 3 bordered tables inside out bootstrap table bootsnipt best layouts bootstrap 4 tables bootstrap 3.3.5 table example table bootstrap core css bootstrap 5 tables table w3 bootstrap 3 bootstrap 4 table compact table header in bootstrap 3 dark table bootstrap 3 table with 3 col bootstrap bootstrap table responsive 3.3.7 bootstrap 3 table docs bootstrap 3 tables bootstrap 4 table table bootstrap 3 responsive bootstrap 3 striped table 3 column table bootstrap bootstrap 3 small text table getbootstrap.com table bootstrap 3 dark table table template bootstrap bootstrap table of contents bootstrap-table row class bootstrapTable TableHeaderColumn dataformat money bootstrapTable format money bootstrap table format money table bootsrap 3 bootstrap 2.3 horizontal table bootstrap 2.3 table bootstrap 5 table bootstrap 3 table with border bootstrap 3 table component api data table in bootstrap 3 equivalent of table sm in bootstrap 3 bootstrap 3 small table bootstrap 3 table header color bootstrap 3 table responsive class bootstrap 3 table front style bootstrap 3.3.6 responsive table bootstrap 3 table template bootstrap 3.4.1 table tablas bootstrap 3 bootstrap 3 table design bootstrap 3 tabber bootstrap 3.3.7 table data table bootstrap 3 bootsrap .3 table table border bootstrap 3 class bootsrap 3 table bootstrap 3.3.7 table responsive table bootstrap 3.5 table styles bootstrap 3 bootstrap compact table modern bootstrap compact table bootstrap class adds hover effect on HTML table import only bootstrap table styles datatable bootsnipp w3school datatable bootstrap w3school bootstrap 3.3 table responsive bootstrap css table bootstrap for table design table properties bootstrap BootstrapTable row color tablea boot strap html simples bootrap 3 table table in html bootstrap html table compact bootstrap 3 tables designs w3schools bootstrap 4 tables html table design bootstrap bootstrap 4.1.3 table bootstrap table compact table line bootstrap bootrap3 table basic table bootstrap code table table-hover table-condensed border table css bs3 table bootstap bootstrap 3 tables get bootstrap color table bootstrap v3 table bootsrao table php bootstrap tables w3schools bootsratp table boostrap 3 table bs datatble hover datatables w3schoo table table-hover bootstrap bootstrap table bordered table-condensed bootstrap table striped attribute css border tables in bootstrap 3 table responsive class in bootstrap table theme bootstrap 3 bootstrap tr boobttsrap table woith border condensed bootstrap &lt;table class=&quot;table&quot;&gt; table striped bootstrap w3schools bootstrap3 table bootstrap 3 condensed table reflexive tabular bootstrap form snippets in HTML table structure in bootstrap bothstarp table bootstrap 3 table condensed bootstrap table template bootstrap 3 table row color table table-bordered table-striped striped bootstrap bootstrap3 div table tablein bootstrap bootstrap tabler tabled view bootstrap bootstrap dummy table bootstrap table with border tbl r responsive class what is table-condensed in bootstrap bootstrap table terms tr bootstrap class bootstrap datatable w3schools bootstrip table how to make bootstrap tables responsive table design bootstrap examples class table bootstrap 3 bootstrap 4 type of table create bootstrap table bootsap table datatable example w3schools boottrap table bootstrap table tr color table bootstrape bootstrap table syntax example table bordered bootstrap bootstrap 3 table bordered bootstrap tble making a table in bootstrap BOOTSTRAP CREATE TABLE bootstrap table bootstrap table w3schools bootstrap html table responsive bootstrap datatable example w3schools bootstrap tables responsive tabular form bootstrap get bootstrap table in bootstrap w3schools bootstrap for table bootstrap tbal table structure bootstrap bootstrap table class table bootstrap table structure table bootstrap hover bootstrap table responsive example html tabla bootstrap example getbootstrap table bootstrap w3schools table bootstrap .table-responsive bootstrap info table table in bootstrap 3 bootstrap 3 tables w3schools table bootstrap stap colors table-responsive bootstrap 3 table responsive css bootstrap 3 can you have a bootstrap table in html bootstrap table condenced color many columns table w3schools bootstrap 4 table row class javascript bootstrap tables class bootstrap php bootstrap tables w3 scholles table using bootstrap table full border in bootstrap bootstrap tabkle bootstrap table-bordered table design html bootstrap bootstrap class table bootstrap rable bootstrap table example bootstrap html table design with css bootstrap responsive table w3schools table form in bootstrap table responsive bootstrap bootstrap w3 table table borders design bootstrap bootstrap td sub td bootstrap tabels bootstrap table-borderd bootstrap table border style table border bootstrap list content in tabular form using bootstrap bootstrap table in w3schools table bootstrap for message bootstrap table w3school table in table bootstrap table style html bootstrapnder table bootstrap table borders bootstrap table css html online bootstrap table css html bootstrap 4 tableall in one results table html bootstrap3 css table-condensed bootstrap tableboard bootstrap tabe table with rows and columns in bootstrap tr background color bootstrap html bootstrap table table striped bootstrap table hover in bootstrap bootstrap table on hover html table active table class=&quot;table table-bordered table-striped in angular table hover bootstrap 3 add BootstrapTable display table data with bootstrap bootstrap table resposibe no wrap bootstrap table hover bootstrap html table template responsive table bootstrap 3 responsive table bootstrap 4 example html tables bootstrap bootstrap table design bootstrap 4 table divisions bootstrap table without stripes bootstrap 3 responsive table bootstrap talbe bootstrap table tutorial bootstrap template table list bootstrap table responsive 100 width table bootstrap3 template bootstrap 3 table responsive table bootstrap 4 tableborders bootstrap 3 making a table with bootstrap table-striped bootstrap set specific tr first bootstrap add in table bootstrap table bootstrap no border how to make the very end row in a table nto have a line in bootstrap borderless table bootstrap one page table list bootstrap-table table small bootstrap bootstrap thead border div table bootstrap 4 table in bootstrap 4 bootstrap responsive table with hover table style bootstrap bootstrap 3 table borderless bootstrap table form javascript build bootstrap table tableau bootstrap 3 bootstrap 4 compact javascript table class bootstrap 4 style tfoot bootstrap table minimal table borders bootstrap4 bootstrap table no lines bootstrap striped table bootrap table code user table in bootstrap 4 div table css bootstrap bootstrap table layout bootstrap free tables .w-auto table in bootstrap table responsive bootstrap 4 getbootstrap tables alternate color table rows bootstrap alternate color table bootstrap bootstrap tr td responsive bootstrap 4 table styled responsive boootstrap table code bootstrap responsive table clas bordered table bootstrap how to make a table vertical using bootstrap table design css bootstrap div table in bootstrap cutting bootstrap tableforms tooble bootstrap Using Bootstrap, color the table rows and columns table in bootstrap with border bootstrap tables\ table class bootstrap bootstrap 4 table free bootstrap tables make table with div bootstrap class table responsive bootstrap making simple bootstrap table bootstrap table border none bootstrap 4.4.1 table table class in bootstrap bootstrap php table bootstrap table style css table css bootstrap 4 table responsive table border doubel linein boostra[ table without bg bootstrap table examples table responsive boostrap css 4 borderless table table-responsive bootstrap table bootstrap 4 responsive double table bordered in bootstrap make a bootstrap page like sql table double striped table bordered in bootstrap double striped table border in bootstrap table border in bootstrap bootstrap small table width 100% table table-striped table-sm bootstrap table without border bootstrap table hover effect bootstrap table hover cell bootstrap alternate color table bootstrap-table strrped table hover bootstap table html bootstrap bootstrap responsive tables bootstrap mobile table border table bootstrap bootstrap table max width screen bootstrap 4 table class bootstrap table styles table without border bootstrap bootsrap table bootstrap tablee bootrsrap table tabla boostrap table template bootstrap 4 simple bootstrap table bootstrap able bootstrap table table-striped bootstrap able table-striped bootstrap4 table bootstrap 4 table no border Bootstrap tablr boostrap table no bold head class= table-responsive class= table table-hover table-striped table hover css table hover bootstrap bootstrap 3 table class bottstrap table bootstrap table group class table condensed table examples bootstrap 4 table no border bootstrap bootstrp tables bootstrap tabel bootstarp table div table bootstrap bootstrap 4 table styles boootstrap table bootstrap net table table striped bootstrap tsble boostrap table bbotstrap table bootstrap border table bootrap table tabla responsive bootstrap bootstrap code using 4 tables add a table in a slider using bootstrap boostrap tables tables in bootstrap table with bootstrap table + bootstrap bootstrap table striped bootstrp table bootstrape table bootstrap 4 table 10 records bootstrap vertical table table bootstrap 3 bootstrap changs on crestion of table why auto table bootstrap html table with bootstrap bootstrap responsive table smaller than div tables in bootstrap 4 table bootstrap striped tables bootstrap contextual classes in bootstrap bootstrap table border compact table bootstrap group table bootstrap 3 table with group bootstrap 3 scrollable table bootstrap 4 bootstrap table class responsive table in bootstrap Bootstrap teble responsive bootstrap table bootstrap responsive table how to create table using bootstrap get bootstrap3 table bootstrap table condensed class table bootstrap responsive table bootstrap bootstrap table classes table responsive bootstrap 3 html table bootstrap bootstrap tables in html bootstrap 3 table example bootstrap table table in bootstrap table bootstrap bootstrap tables bootstrap table responsive bootstrap 3 table responsive Bootstrap for tables bootstrap tabl bootstrap table html code css source bootstrap table html code bootstrap table bootstrap 3 table
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source