<!DOCTYPE html> <!-- * CoreUI - Free Bootstrap Admin Template * @version v5.2.0 * @link https://coreui.io/product/free-bootstrap-admin-template/ * Copyright (c) 2025 creativeLabs Łukasz Holeczek * Licensed under MIT (https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/main/LICENSE) --> <html lang="en"> <head> <base href="./../"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta name="description" content="CoreUI - Open Source Bootstrap Admin Template"> <meta name="author" content="Łukasz Holeczek"> <meta name="keyword" content="Bootstrap,Admin,Template,Open,Source,jQuery,CSS,HTML,RWD,Dashboard"> <title>CoreUI Free Bootstrap Admin Template</title> <link rel="apple-touch-icon" sizes="57x57" href="assets/favicon/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="assets/favicon/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="assets/favicon/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="assets/favicon/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="assets/favicon/apple-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="assets/favicon/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="assets/favicon/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="assets/favicon/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-icon-180x180.png"> <link rel="icon" type="image/png" sizes="192x192" href="assets/favicon/android-icon-192x192.png"> <link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="96x96" href="assets/favicon/favicon-96x96.png"> <link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png"> <link rel="manifest" href="assets/favicon/manifest.json"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="assets/favicon/ms-icon-144x144.png"> <meta name="theme-color" content="#ffffff"> <!-- Vendors styles--> <link rel="stylesheet" href="node_modules/simplebar/dist/simplebar.css"> <link rel="stylesheet" href="css/vendors/simplebar.css"> <!-- Main styles for this application--> <link href="css/style.css" rel="stylesheet"> <!-- We use those styles to show code examples, you should remove them in your application.--> <link href="css/examples.css" rel="stylesheet"> <script src="js/config.js"></script> <script src="js/color-modes.js"></script> <link rel="canonical" href="https://coreui.io/docs/content/tables/"> </head> <body> <div class="sidebar sidebar-dark sidebar-fixed border-end" id="sidebar"> <div class="sidebar-header border-bottom"> <div class="sidebar-brand"> <svg class="sidebar-brand-full" width="88" height="32" alt="CoreUI Logo"> <use xlink:href="assets/brand/coreui.svg#full"></use> </svg> <svg class="sidebar-brand-narrow" width="32" height="32" alt="CoreUI Logo"> <use xlink:href="assets/brand/coreui.svg#signet"></use> </svg> </div> <button class="btn-close d-lg-none" type="button" data-coreui-theme="dark" aria-label="Close" onclick="coreui.Sidebar.getInstance(document.querySelector("#sidebar")).toggle()"></button> </div> <ul class="sidebar-nav" data-coreui="navigation" data-simplebar> <li class="nav-item"><a class="nav-link" href="index.html"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-speedometer"></use> </svg> Dashboard<span class="badge badge-sm bg-info ms-auto">NEW</span></a></li> <li class="nav-title">Theme</li> <li class="nav-item"><a class="nav-link" href="colors.html"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-drop"></use> </svg> Colors</a></li> <li class="nav-item"><a class="nav-link" href="typography.html"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-pencil"></use> </svg> Typography</a></li> <li class="nav-title">Components</li> <li class="nav-group"><a class="nav-link nav-group-toggle" href="#"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-puzzle"></use> </svg> Base</a> <ul class="nav-group-items compact"> <li class="nav-item"><a class="nav-link" href="base/accordion.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Accordion</a></li> <li class="nav-item"><a class="nav-link" href="base/breadcrumb.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Breadcrumb</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/bootstrap/docs/components/calendar/" target="_blank"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Calendar <svg class="icon icon-sm ms-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-external-link"></use> </svg><span class="badge badge-sm bg-danger ms-auto">PRO</span></a></li> <li class="nav-item"><a class="nav-link" href="base/cards.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Cards</a></li> <li class="nav-item"><a class="nav-link" href="base/carousel.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Carousel</a></li> <li class="nav-item"><a class="nav-link" href="base/collapse.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Collapse</a></li> <li class="nav-item"><a class="nav-link" href="base/list-group.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> List group</a></li> <li class="nav-item"><a class="nav-link" href="base/navs-tabs.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Navs & Tabs</a></li> <li class="nav-item"><a class="nav-link" href="base/pagination.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Pagination</a></li> <li class="nav-item"><a class="nav-link" href="base/placeholders.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Placeholders</a></li> <li class="nav-item"><a class="nav-link" href="base/popovers.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Popovers</a></li> <li class="nav-item"><a class="nav-link" href="base/progress.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Progress</a></li> <li class="nav-item"><a class="nav-link" href="base/spinners.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Spinners</a></li> <li class="nav-item"><a class="nav-link" href="base/tables.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Tables</a></li> <li class="nav-item"><a class="nav-link" href="base/tooltips.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Tooltips</a></li> </ul> </li> <li class="nav-group"><a class="nav-link nav-group-toggle" href="#"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-cursor"></use> </svg> Buttons</a> <ul class="nav-group-items compact"> <li class="nav-item"><a class="nav-link" href="buttons/buttons.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Buttons</a></li> <li class="nav-item"><a class="nav-link" href="buttons/button-group.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Buttons Group</a></li> <li class="nav-item"><a class="nav-link" href="buttons/dropdowns.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Dropdowns</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/bootstrap/docs/components/loading-buttons/" target="_blank"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Loading Buttons <svg class="icon icon-sm ms-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-external-link"></use> </svg><span class="badge badge-sm bg-danger ms-auto">PRO</span></a></li> </ul> </li> <li class="nav-item"><a class="nav-link" href="charts.html"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-chart-pie"></use> </svg> Charts</a></li> <li class="nav-group"><a class="nav-link nav-group-toggle" href="#"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-notes"></use> </svg> Forms</a> <ul class="nav-group-items compact"> <li class="nav-item"><a class="nav-link" href="forms/form-control.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Form Control</a></li> <li class="nav-item"><a class="nav-link" href="forms/select.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Select</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/bootstrap/docs/forms/multi-select/" target="_blank"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Multi Select <svg class="icon icon-sm ms-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-external-link"></use> </svg><span class="badge badge-sm bg-danger ms-auto">PRO</span></a></li> <li class="nav-item"><a class="nav-link" href="forms/checks-radios.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Checks and radios</a></li> <li class="nav-item"><a class="nav-link" href="forms/range.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Range</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/bootstrap/docs/forms/range-slider/" target="_blank"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Range Slider <svg class="icon icon-sm ms-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-external-link"></use> </svg><span class="badge badge-sm bg-danger ms-auto">PRO</span></a></li> <li class="nav-item"><a class="nav-link" href="forms/input-group.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Input group</a></li> <li class="nav-item"><a class="nav-link" href="forms/floating-labels.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Floating labels</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/bootstrap/docs/forms/date-picker/" target="_blank"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Date Picker <svg class="icon icon-sm ms-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-external-link"></use> </svg><span class="badge badge-sm bg-danger ms-auto">PRO</span></a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/bootstrap/docs/forms/date-range-picker/" target="_blank"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Date Range Picker<span class="badge badge-sm bg-danger ms-auto">PRO</span></a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/bootstrap/docs/forms/rating/" target="_blank"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Rating <svg class="icon icon-sm ms-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-external-link"></use> </svg><span class="badge badge-sm bg-danger ms-auto">PRO</span></a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/bootstrap/docs/forms/time-picker/" target="_blank"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Time Picker <svg class="icon icon-sm ms-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-external-link"></use> </svg><span class="badge badge-sm bg-danger ms-auto">PRO</span></a></li> <li class="nav-item"><a class="nav-link" href="forms/layout.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Layout</a></li> <li class="nav-item"><a class="nav-link" href="forms/validation.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Validation</a></li> </ul> </li> <li class="nav-group"><a class="nav-link nav-group-toggle" href="#"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-star"></use> </svg> Icons</a> <ul class="nav-group-items compact"> <li class="nav-item"><a class="nav-link" href="icons/coreui-icons-free.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> CoreUI Icons<span class="badge badge-sm bg-success ms-auto">Free</span></a></li> <li class="nav-item"><a class="nav-link" href="icons/coreui-icons-brand.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> CoreUI Icons - Brand</a></li> <li class="nav-item"><a class="nav-link" href="icons/coreui-icons-flag.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> CoreUI Icons - Flag</a></li> </ul> </li> <li class="nav-group"><a class="nav-link nav-group-toggle" href="#"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-bell"></use> </svg> Notifications</a> <ul class="nav-group-items compact"> <li class="nav-item"><a class="nav-link" href="notifications/alerts.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Alerts</a></li> <li class="nav-item"><a class="nav-link" href="notifications/badge.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Badge</a></li> <li class="nav-item"><a class="nav-link" href="notifications/modals.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Modals</a></li> <li class="nav-item"><a class="nav-link" href="notifications/toasts.html"><span class="nav-icon"><span class="nav-icon-bullet"></span></span> Toasts</a></li> </ul> </li> <li class="nav-item"><a class="nav-link" href="widgets.html"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-calculator"></use> </svg> Widgets<span class="badge badge-sm bg-info ms-auto">NEW</span></a></li> <li class="nav-divider"></li> <li class="nav-title">Extras</li> <li class="nav-group"><a class="nav-link nav-group-toggle" href="#"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-star"></use> </svg> Pages</a> <ul class="nav-group-items compact"> <li class="nav-item"><a class="nav-link" href="login.html" target="_top"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-account-logout"></use> </svg> Login</a></li> <li class="nav-item"><a class="nav-link" href="register.html" target="_top"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-account-logout"></use> </svg> Register</a></li> <li class="nav-item"><a class="nav-link" href="404.html" target="_top"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-bug"></use> </svg> Error 404</a></li> <li class="nav-item"><a class="nav-link" href="500.html" target="_top"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-bug"></use> </svg> Error 500</a></li> </ul> </li> <li class="nav-item mt-auto"><a class="nav-link" href="https://coreui.io/docs/templates/installation/" target="_blank"> <svg class="nav-icon"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-description"></use> </svg> Docs</a></li> <li class="nav-item"><a class="nav-link text-primary fw-semibold" href="https://coreui.io/product/bootstrap-dashboard-template/" target="_top"> <svg class="nav-icon text-primary"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-layers"></use> </svg> Try CoreUI PRO</a></li> </ul> <div class="sidebar-footer border-top d-none d-md-flex"> <button class="sidebar-toggler" type="button" data-coreui-toggle="unfoldable"></button> </div> </div> <div class="wrapper d-flex flex-column min-vh-100"> <header class="header header-sticky p-0 mb-4"> <div class="container-fluid border-bottom px-4"> <button class="header-toggler" type="button" onclick="coreui.Sidebar.getInstance(document.querySelector('#sidebar')).toggle()" style="margin-inline-start: -14px;"> <svg class="icon icon-lg"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-menu"></use> </svg> </button> <ul class="header-nav d-none d-lg-flex"> <li class="nav-item"><a class="nav-link" href="#">Dashboard</a></li> <li class="nav-item"><a class="nav-link" href="#">Users</a></li> <li class="nav-item"><a class="nav-link" href="#">Settings</a></li> </ul> <ul class="header-nav ms-auto"> <li class="nav-item"><a class="nav-link" href="#"> <svg class="icon icon-lg"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-bell"></use> </svg></a></li> <li class="nav-item"><a class="nav-link" href="#"> <svg class="icon icon-lg"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-list-rich"></use> </svg></a></li> <li class="nav-item"><a class="nav-link" href="#"> <svg class="icon icon-lg"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-envelope-open"></use> </svg></a></li> </ul> <ul class="header-nav"> <li class="nav-item py-1"> <div class="vr h-100 mx-2 text-body text-opacity-75"></div> </li> <li class="nav-item dropdown"> <button class="btn btn-link nav-link py-2 px-2 d-flex align-items-center" type="button" aria-expanded="false" data-coreui-toggle="dropdown"> <svg class="icon icon-lg theme-icon-active"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-contrast"></use> </svg> </button> <ul class="dropdown-menu dropdown-menu-end" style="--cui-dropdown-min-width: 8rem;"> <li> <button class="dropdown-item d-flex align-items-center" type="button" data-coreui-theme-value="light"> <svg class="icon icon-lg me-3"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-sun"></use> </svg>Light </button> </li> <li> <button class="dropdown-item d-flex align-items-center" type="button" data-coreui-theme-value="dark"> <svg class="icon icon-lg me-3"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-moon"></use> </svg>Dark </button> </li> <li> <button class="dropdown-item d-flex align-items-center active" type="button" data-coreui-theme-value="auto"> <svg class="icon icon-lg me-3"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-contrast"></use> </svg>Auto </button> </li> </ul> </li> <li class="nav-item py-1"> <div class="vr h-100 mx-2 text-body text-opacity-75"></div> </li> <li class="nav-item dropdown"><a class="nav-link py-0 pe-0" data-coreui-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"> <div class="avatar avatar-md"><img class="avatar-img" src="assets/img/avatars/8.jpg" alt="user@email.com"></div></a> <div class="dropdown-menu dropdown-menu-end pt-0"> <div class="dropdown-header bg-body-tertiary text-body-secondary fw-semibold rounded-top mb-2">Account</div><a class="dropdown-item" href="#"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-bell"></use> </svg> Updates<span class="badge badge-sm bg-info ms-2">42</span></a><a class="dropdown-item" href="#"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-envelope-open"></use> </svg> Messages<span class="badge badge-sm bg-success ms-2">42</span></a><a class="dropdown-item" href="#"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-task"></use> </svg> Tasks<span class="badge badge-sm bg-danger ms-2">42</span></a><a class="dropdown-item" href="#"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-comment-square"></use> </svg> Comments<span class="badge badge-sm bg-warning ms-2">42</span></a> <div class="dropdown-header bg-body-tertiary text-body-secondary fw-semibold my-2"> <div class="fw-semibold">Settings</div> </div><a class="dropdown-item" href="#"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-user"></use> </svg> Profile</a><a class="dropdown-item" href="#"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-settings"></use> </svg> Settings</a><a class="dropdown-item" href="#"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-credit-card"></use> </svg> Payments<span class="badge badge-sm bg-secondary ms-2">42</span></a><a class="dropdown-item" href="#"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-file"></use> </svg> Projects<span class="badge badge-sm bg-primary ms-2">42</span></a> <div class="dropdown-divider"></div><a class="dropdown-item" href="#"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-lock-locked"></use> </svg> Lock Account</a><a class="dropdown-item" href="#"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-account-logout"></use> </svg> Logout</a> </div> </li> </ul> </div> <div class="container-fluid px-4"> <nav aria-label="breadcrumb"> <ol class="breadcrumb my-0"> <li class="breadcrumb-item"><a href="#">Home</a> </li> <li class="breadcrumb-item"><span>Components</span> </li> <li class="breadcrumb-item"><span>Base</span> </li> <li class="breadcrumb-item active"><span>Tables</span> </li> </ol> </nav> </div> </header> <div class="body flex-grow-1"> <div class="container-lg px-4"> <div class="bg-primary bg-opacity-10 border border-2 border-primary rounded mb-4"> <div class="row d-flex align-items-center p-3 px-xl-4 flex-xl-nowrap"> <div class="col-xl-auto col-12 d-none d-xl-block p-0"><img class="img-fluid" src="assets/img/components.webp" width="160px" height="160px" alt="CoreUI PRO hexagon"></div> <div class="col-md col-12 px-lg-4"> Our Admin Panel isn’t just a mix of third-party components. It’s <strong>the only open-source Bootstrap dashboard built on a professional, enterprise-grade UI Components Library</strong>. This component is part of this library, and we present only the basic usage of it here. To explore extended examples, detailed API documentation, and customization options, refer to our docs. </div> <div class="col-md-auto col-12 mt-3 mt-lg-0"><a class="btn btn-primary text-nowrap text-white" href="https://coreui.io/docs/components/tables/" target="_blank" rel="noopener noreferrer">Explore Documentation</a></div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Basic example</span></div> <div class="card-body"> <p class="text-body-secondary small">Using the most basic table markup, here’s how <code>.table</code>-based tables look in Bootstrap.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1000" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#overview" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1000"> <table class="table"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Variants</span></div> <div class="card-body"> <p class="text-body-secondary small">Use contextual classes to color tables, table rows or individual cells.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1001" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#variants" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1001"> <table class="table"> <thead> <tr> <th scope="col">Class</th> <th scope="col">Heading</th> <th scope="col">Heading</th> </tr> </thead> <tbody> <tr> <th scope="row">Default</th> <td>Cell</td> <td>Cell</td> </tr> <tr class="table-primary"> <th scope="row">Primary</th> <td>Cell</td> <td>Cell</td> </tr> <tr class="table-secondary"> <th scope="row">Secondary</th> <td>Cell</td> <td>Cell</td> </tr> <tr class="table-success"> <th scope="row">Success</th> <td>Cell</td> <td>Cell</td> </tr> <tr class="table-danger"> <th scope="row">Danger</th> <td>Cell</td> <td>Cell</td> </tr> <tr class="table-warning"> <th scope="row">Warning</th> <td>Cell</td> <td>Cell</td> </tr> <tr class="table-info"> <th scope="row">Info</th> <td>Cell</td> <td>Cell</td> </tr> <tr class="table-light"> <th scope="row">Light</th> <td>Cell</td> <td>Cell</td> </tr> <tr class="table-dark"> <th scope="row">Dark</th> <td>Cell</td> <td>Cell</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Striped rows</span></div> <div class="card-body"> <p class="text-body-secondary small">Use <code>.table-striped</code> to add zebra-striping to any table row within the <code> <tbody></code>.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1002" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#striped-rows" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1002"> <table class="table table-striped"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> <p class="text-body-secondary small">These classes can also be added to table variants:</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1003" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#striped-rows" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1003"> <table class="table table-dark table-striped"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1004" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#striped-rows" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1004"> <table class="table table-success table-striped"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Hoverable rows</span></div> <div class="card-body"> <p class="text-body-secondary small">Add <code>.table-hover</code> to enable a hover state on table rows within a <code> <tbody></code>.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1005" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#hoverable-rows" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1005"> <table class="table table-hover"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1006" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#hoverable-rows" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1006"> <table class="table table-dark table-hover"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> <p class="text-body-secondary small">These hoverable rows can also be combined with the striped variant:</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1007" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#hoverable-rows" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1007"> <table class="table table-striped table-hover"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Active tables</span></div> <div class="card-body"> <p class="text-body-secondary small">Highlight a table row or cell by adding a <code>.table-active</code> class.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1008" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#active-tables" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1008"> <table class="table"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr class="table-active"> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td class="table-active" colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1009" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#active-tables" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1009"> <table class="table table-dark"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr class="table-active"> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td class="table-active" colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Bordered tables</span></div> <div class="card-body"> <p class="text-body-secondary small">Add <code>.table-bordered</code> for borders on all sides of the table and cells.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1010" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#bordered-tables" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1010"> <table class="table table-bordered"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> <p class="text-body-secondary small"><a href="https://coreui.io/docs/utilities/borders/#border-color">Border color utilities</a> can be added to change colors:</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1011" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#bordered-tables" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1011"> <table class="table table-bordered border-primary"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Tables without borders</span></div> <div class="card-body"> <p class="text-body-secondary small">Add <code>.table-borderless</code> for a table without borders.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1012" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#tables-without-borders" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1012"> <table class="table table-borderless"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1013" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#tables-without-borders" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1013"> <table class="table table-dark table-borderless"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Small tables</span></div> <div class="card-body"> <p class="text-body-secondary small">Add <code>.table-sm</code> to make any <code>.table</code> more compact by cutting all cell <code>padding</code> in half.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1014" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#small-tables" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1014"> <table class="table table-sm"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1015" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#small-tables" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1015"> <table class="table table-dark table-sm"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Vertical alignment</span></div> <div class="card-body"> <p class="text-body-secondary small">Table cells of <code> <thead></code> are always vertical aligned to the bottom. Table cells in <code> <tbody></code> inherit their alignment from <code> <table></code> and are aligned to the the top by default. Use the <a href="https://coreui.io/docs/utilities/vertical-align/">vertical align</a> classes to re-align where needed.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1016" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#vertical-alignment" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1016"> <div class="table-responsive"> <table class="table align-middle"> <thead> <tr> <th class="w-25" scope="col">Heading 1</th> <th class="w-25" scope="col">Heading 2</th> <th class="w-25" scope="col">Heading 3</th> <th class="w-25" scope="col">Heading 4</th> </tr> </thead> <tbody> <tr> <td>This cell inherits <code>vertical-align: middle;</code> from the table</td> <td>This cell inherits <code>vertical-align: middle;</code> from the table</td> <td>This cell inherits <code>vertical-align: middle;</code> from the table</td> <td>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.</td> </tr> <tr class="align-bottom"> <td>This cell inherits <code>vertical-align: bottom;</code> from the table row</td> <td>This cell inherits <code>vertical-align: bottom;</code> from the table row</td> <td>This cell inherits <code>vertical-align: bottom;</code> from the table row</td> <td>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.</td> </tr> <tr> <td>This cell inherits <code>vertical-align: middle;</code> from the table</td> <td>This cell inherits <code>vertical-align: middle;</code> from the table</td> <td class="align-top">This cell is aligned to the top.</td> <td>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.</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Nesting</span></div> <div class="card-body"> <p class="text-body-secondary small">Border styles, active styles, and table variants are not inherited by nested tables.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1017" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#nesting" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1017"> <table class="table table-striped table-bordered"> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <td colspan="4"> <table class="table mb-0"> <thead> <tr> <th scope="col">Header</th> <th scope="col">Header</th> <th scope="col">Header</th> </tr> </thead> <tbody> <tr> <th scope="row">A</th> <td>First</td> <td>Last</td> </tr> <tr> <th scope="row">B</th> <td>First</td> <td>Last</td> </tr> <tr> <th scope="row">C</th> <td>First</td> <td>Last</td> </tr> </tbody> </table> </td> </tr> <tr> <th scope="row">3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Table head</span></div> <div class="card-body"> <p class="text-body-secondary small">Similar to tables and dark tables, use the modifier classes <code>.table-light</code> or <code>.table-dark</code> to make <code> <thead></code>s appear light or dark gray.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1018" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#table-head" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1018"> <table class="table"> <thead class="table-light"> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1019" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#table-head" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1019"> <table class="table"> <thead class="table-dark"> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Table foot</span></div> <div class="card-body"> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1020" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#table-foot" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1020"> <table class="table"> <thead class="table-light"> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> <tfoot> <tr> <td>Footer</td> <td>Footer</td> <td>Footer</td> <td>Footer</td> </tr> </tfoot> </table> </div> </div> </div> </div> </div> <div class="card mb-4"> <div class="card-header"><strong>Tables</strong><span class="small ms-1">Captions</span></div> <div class="card-body"> <p class="text-body-secondary small">A <code> <caption></code> 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.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1021" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#captions" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1021"> <table class="table"> <caption>List of users</caption> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td colspan="2">Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> <p class="text-body-secondary small">You can also put the <code> <caption></code> on the top of the table with <code>.caption-top</code>.</p> <div class="example"> <ul class="nav nav-underline-border" role="tablist"> <li class="nav-item"><a class="nav-link active" data-coreui-toggle="tab" href="#preview-1022" role="tab"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play"></use> </svg>Preview</a></li> <li class="nav-item"><a class="nav-link" href="https://coreui.io/docs/content/tables/#captions" target="_blank"> <svg class="icon me-2"> <use xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code"></use> </svg>Code</a></li> </ul> <div class="tab-content rounded-bottom"> <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1022"> <table class="table caption-top"> <caption>List of users</caption> <thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <footer class="footer px-4"> <div><a href="https://coreui.io">CoreUI </a><a href="https://coreui.io/product/free-bootstrap-admin-template/">Bootstrap Admin Template</a> © 2025 creativeLabs.</div> <div class="ms-auto">Powered by <a href="https://coreui.io/docs/">CoreUI UI Components</a></div> </footer> </div> <!-- CoreUI and necessary plugins--> <script src="node_modules/@coreui/coreui/dist/js/coreui.bundle.min.js"></script> <script src="node_modules/simplebar/dist/simplebar.min.js"></script> <script> const header = document.querySelector('header.header'); document.addEventListener('scroll', () => { if (header) { header.classList.toggle('shadow-sm', document.documentElement.scrollTop > 0); } }); </script> <script> </script> </body> </html>