Bootstrap Basic Tables

Basic Table with Border Bottom Color

Use table class to any table, and border-bottom-* class for Border bottom color .

IdFirst NameLast NameUsernameDesignationCompanyLanguageCountry
1 profileRam JacobWolfeRamJacob@twitterDeveloperApple Inc. PhpIND
2 profileJohn DeoGummerJohnDeo@twitter DesignerHewlett packard HtmlUS
3 profileElana JohnCazale ElanaJohn@twitterDesignerMicrosoft PugUK
4 Meryl StreepRobertsMerylStreep@twitterDeveloperTata Ltd. ReactIDN
5 Emma StoneStoneEmmaStone@twitter DeveloperWipro Ltd. VueIRN
6 Eliana JonsJonsElianaJons@twitter DeveloperInfo Ltd. VueIRN
Bootstrap Table With Variants

Use table class to any table, and border-bottom-* class for Border bottom color .

#Roll NumberStudent NameStandardGradePercentage
Default 01Watson Freeman10thA +89.5%
Primary02Miley Morgan06thB+65.6%
Secondary03Charli Olsen02thC+45.2%
Success04Levi Berger11thA+78.3%
Danger05Ayaan Rich08thB+67.9%
Warning06Mae Flores12thA+99.4%
Info07Angel Terrell10thB+70.3%
Light08Logan Luna11thA+92.5%
Dark09Sage Cuevas04thA+97.6%
Inverse Table

Use table-inverse class inside table element.

IdFirst NameLast NameOfficePositionSalaryJoin Date Age
1StephanLaitenTokyoAccountant$2100.00 21/01/2024 20
2Fay Van Damme London CEO$1420.00 14/02/2021 22
3Brevin OleveriaNew York Software Engineer $1340.00 04/06/2024 18
4ReginaOttandy France Pre-sale Support $3400.00 10/08/2024 25
5VaniShah Los Angeles Senior Developer $3500.00 23/07/2024 28
Hoverable Rows with Horizontal Border

Hoverable row use a class table-hover and for horizontal border use a class table-border-horizontal , solid border use a class border-solid, table classes.

IdStatusSignal Name SecurityStageScheduleTeam Lead
1No SignalAstrid: NE Shared managedMediumTriaged0.33 Chase Nguyen
2OfflineCosmo: prod shared ares HugeTriaged0.39Brie Furman
3 OnlinePhoenix: prod shared lyra-lists MinorNo Triaged3.12 Jeremy Lake
4 No SignalAstrid: NE Shared managedNegligibleTriaged13.18Angelica Howards
5 OnlineAstrid: NE Shared managedMediumNo Triaged5.33 Diane Okuma
Inverse Table Background

Use bg-info, bg-success, bg-warning and bg-danger classes with light text on dark backgrounds inside table element.
To set the light background color use bg-[color] class where [color] is the value of your selected color from stack color palette. So for teal color background class will be bg-teal.

IdFirst NameLast NameCompanyCredit Volume UsernameRole Country
1Ram Jacob WolfeApple Inc. $3500.00 RamJacob@twitter DeveloperIND
2John Deo Gummer Hewlett packard $2400.00JohnDeo@twitter DesignerUS
3Elana John WolfeMicrosoft $2560.00 ElanaJohn@twitter DesignerUK
4Meryl Streep RobertsTata Ltd. $1870.00MerylStreep@twitter DeveloperIND
5Emma Stone StoneWipro Ltd. $4580.00 EmmaStone@twitter DeveloperIRN
6Eliana Jons JonsInfo Ltd. $4580.00 ElianaJons@twitter DeveloperIRN
Caption

A <caption> functions like a heading for a table. It helps users with screen readers to find a table and understand what it’s about and decide if they want to read it.

List of users
IdEmployee Name EmailExperienceSexContact No. Age
1Elana Robbert ElanaRob@gmail.com 1 Year Male +91 9789887777 28
2Stiphen Deo Stiphen@yahoo.com 6 Month Female+91 9874563210 22
3Genelia Ottre Genelia@gmail.com 2 Days Male +91 8794562135 24
Table Head Options

Similar to tables , use the modifier classes table-[color] to make thead appear in any color.

IdFirst NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
Striped Row with Inverse Table

Use table-striped to add zebra-striping to any table row within the . This styling doesn't work in IE8 and below as :nth-child CSS selector isn't supported.

IdDessertCaloriesFatPrice
1KitKat5182620
2Donut4522580
3Eclair2621610
Striped Columns

Use table-striped-columns to add zebra-striping to any table column.

#NameAgeCityOccupation
1Kara Mayer53New YorkSoftware Engineer
2Jorge Molina22ChicagoTeacher
3Adele Gibbs28MiamiFinancial Advisor
Active Tables

Highlight a table row or cell by adding a table-active class.

Product IDProduct NameCategoryPrice
P001LaptopComputers$999
P002HeadphonesAudio$600
P003Electric KettleHome$40
Table Borders

Add table-bordered for borders on all sides of the table and cells.

ISBNTitleAuthorYear Published
978-1-891830-75-4The Great GatsbyF. Scott Fitzgerald1975
978-0-06-112008-4To Kill a MockingbirdHarper Lee1985
978-0-452-28423-41987George Orwell1947
978-1-5011-8687-0Where the Crawdads SingDelia Owens2019
Table Without Borders

Add table-borderless for a table without borders.

DateExercise TypeDurationCalories Burned
21-07-2024Running30300
29-07-2024Cycling45400
11-08-2024Yoga60200
25-11-2024Weightlifting40250
Vertical alignment

Table cells of <thead> are always vertical aligned to the bottom. Table cells in <tbody> inherit their alignment from <table> and are aligned to the top by default. Use the vertical align classes to re-align where needed.

Heading1Heading2Heading3Heading4
This cell inherits vertical-align: middle; from the tableThis cell inherits vertical-align: middle; from the tableThis cell inherits vertical-align: middle; from the tableThis here is some placeholder text, intended to take up quite a bit of vertical space, to demonstrate how the vertical alignment works in the preceding cells.
This cell inherits vertical-align: bottom; from the table rowThis cell inherits vertical-align: bottom; from the table rowThis cell inherits vertical-align: bottom; from the table rowThis here is some placeholder text, intended to take up quite a bit of vertical space, to demonstrate how the vertical alignment works in the preceding cells.
This cell inherits vertical-align: middle; from the tableThis cell inherits vertical-align: middle; from the tableThis cell is aligned to the top.This here is some placeholder text, intended to take up quite a bit of vertical space, to demonstrate how the vertical alignment works in the preceding cells.
Nesting

Border styles, active styles, and table variants are not inherited by nested tables.

DateStudent NameStatusNotes
05-09-2024Ryder Grant PresentOn time
Course NameInstructorDayTime
Data StructuresProf. A. SmithMonday10:00 AM
Database SystemsProf. D. JohnsonFriday09:00 AM
11-10-2024Collins Ellison AbsentSick leave
25-11-2024Ocean Kelly PresentLate by 10 minutes
18-12-2024Jayce Fisher AbsentFamily emergency
Anatomy (Table Head)

Similar to tables and dark tables, use the modifier classes table-light or table-dark to make <thead>s appear light or dark gray.

VersionRelease DateNew FeaturesBug Fixes
1.0.015-05-2024Improved UIResolved crash on startup
1.1.025-06-2024Added user profilesFixed login issues
2.1.006-06-2024Security featuresCorrected auth errors
2.2.008-07-2024Multi-language supportFixed display bugs
3.1.012-08-2024Added SellersFixed seller details
3.2.027-09-2024Added dashboardsFixed Timeline issue
4.1.028-12-2024Gallery placeholdersFixed placeholder delay issue
Table Foot

To prevent any styles from leaking to nested tables, we use the child combinator (>) selector in our CSS. Since we need to target all the tds and ths in the thead, tbody, and tfoot, our selector would look pretty long without it.

Product IDProduct NameCategoryPrice ($)
P005HeadphonesAudio$120
P006BlenderKitchen$80
P007SmartphoneElectronics$690
P008Electric KettleHome$40
Total Products04
Table Group Dividers

Add a thicker border, darker between table groups—<thead>, <tbody>, and <tfoot>—with table-group-divider. Customize the color by changing the border-top-color (which we don’t currently provide a utility class for at this time).

#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
4LarryOlson@instagram
5Franklin@linkedin
Breakpoint Specific

Use table-responsive"❴-sm|-md|-lg|-xl|-xxl❵" functions like a heading for a table. It helps users with screen readers to find a table and understand what it’s about and decide if they want to read it.

IdNameOrder Id PriceQuantityTotal
1Iphone X Grey C12345$12550 1$12550
2Titan Watch A14725 $1202$250
3Apple Airpods B54213$210 1$210
Responsive Tables with Light Background

A table-responsive , light-card inside table element.

IdTaskEmailPhoneAssignDatePrice StatusProgress
1Web Development Pixel@efo.com +91 7874226671 Mark Jecno 12/07/2024 $2315.00 Pending75%
2Graphic Design Strap@google.com +91 8347855785 Elana John 23/08/2024 $4125.00 Pending 45%
3WordPressPixelstrap@gmail.com +91 635609347 John Deo15/04/2024 $6123.00 Done100%
Sizing Tables

Example of extra large table, Add table-xl class to the table , Large table Add table-lg , Default table Add table-de , Small table Add table-sm , Extra Small table Add table-xs to create a table.

IdEmployee NameDateStatusHoursPerformance
1Mark Jecno 22/08/2024 On leave 029/30
2Elana Robbert 21/08/2024 Present1030/30
3John Deo 18/08/2024On leave 828/30
Custom Table Color with Hover and Stripped

Use class table-hover, table-striped table-*table-info , table-success , table-success , table-info , table-danger , table-primary , table-secondary , table-light , table-active inside table element.

IdFilm TitleReleasedStudioBudget Domestic Gross
1Frozen 2013 Disney $150,000,000$400,953,009
2Minions 2015 Universal $74,000,000$336,045,770
3Zootopia 2016 Disney $150,000,000$341,268,248
4Finding Dory 2016Disney Pixar$175,000,000 $486,295,561
5Toy Story 3 2010Disney Pixar$200,000,000$415,004,880
Dashed Border

Use table-dashed class for dash border for dotted border use class table-dotted for double border use class table-double.

Id ClassnameTypeHoursTrainerSpots
1Crit CardioGym9:00 AM - 11:00 AM Aaron Chapman 10
2Zumba DanceDance8:00 AM - 9:00 AM Donna Wilson 12
3Like a butterfly Boxing9:00 AM - 10:00 AM Randy Porter 13
4Pilates Reformer Gym7:00 AM - 8:30 AM Aaron Chapman 15
5Mind & Body Yoga8:00 AM - 9:00 AM Adam Stewart 20