QUESTIONS? CALL: 0803 201 1553

CANDEPRO

CANDEPRO

C AND E PRODUCTIONS IS A CONTENT CREATION COMPANY.

T (0803) 201 1553
Email: [email protected]

C & E Productions
Plot 753, Joseph Orru Street, Unity Estate, Opposite Swiss Park Mall, Along Festac Link Road, Amuwo Odofin, Lagos State, Nigeria.

Open in Google Maps
  • HOMEPAGE
  • ABOUT US
  • MEET THE TEAM
  • PROJECTS
  • PRESS RELEASE
    • OUR INSTAGRAM FEED
  • PHOTO GALLERY
  • CONTACT US
  • Home
  • Style – Tables
March 23, 2023

Style – Tables

Style – Tables

Default styles

For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>.

#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
<table>
  …
</table>

Optional classes

Add any of the following classes to the .table base class.

.table-striped

Adds zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE7-IE8).

#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larrythe Bird@twitter
<table>
  …
</table>

.table-bordered

Add borders and rounded corners to the table.

#First NameLast NameUsername
1MarkOtto@mdo
MarkOtto@TwBootstrap
2JacobThornton@fat
3Larry the Bird@twitter
<table>
  …
</table>

.table-hover

Enable a hover state on table rows within a <tbody>.

#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
<table>
  …
</table>

.table-condensed

Makes tables more compact by cutting cell padding in half.

#First NameLast NameUsername
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
<table>
  …
</table>

Optional row classes

Use contextual classes to color table rows.

ClassDescription
.successIndicates a successful or positive action.
.errorIndicates a dangerous or potentially negative action.
.warningIndicates a warning that might need attention.
.infoUsed as an alternative to the default styles.
#ProductPayment TakenStatus
1TB – Monthly01/04/2012Approved
2TB – Monthly02/04/2012Declined
3TB – Monthly03/04/2012Pending
4TB – Monthly04/04/2012Call in to confirm
...
  <tr class="success">
    <td>1</td>
    <td>TB - Monthly</td>
    <td>01/04/2012</td>
    <td>Approved</td>
  </tr>
...

Supported table markup

List of supported table HTML elements and how they should be used.

TagDescription
<table>Wrapping element for displaying data in a tabular format
<thead>Container element for table header rows (<tr>) to label table columns
<tbody>Container element for table rows (<tr>) in the body of the table
<tr>Container element for a set of table cells (<td> or <th>) that appears on a single row
<td>Default table cell
<th>Special table cell for column (or row, depending on scope and placement) labelsMust be used within a <thead>
<caption>Description or summary of what the table holds, especially useful for screen readers
<table>
  <caption>...</caption>
  <thead>
    <tr>
      <th>...</th>
      <th>...</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>...</td>
      <td>...</td>
    </tr>
  </tbody>
</table>

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Our boss showing uncommon stuff on the freeway @70

    Celebrating an astute professional, employer, t...
  • Ace Actor/Filmmaker, Charles Okafor (CEO, C and E Productions) standing on the Octagon, preparatory to the OFU Mixed Marshal Arts ( MMA) Fight, on December 4

    ...
  • C and E Productions is one of the official sponsors of the Maiden OFU Mixed Marshal Arts Fight

    ...
  • A Faith-Based Advocacy Film through Worship Music by the Zion Voices, led by Bro Chigozie

    ...
  • Veteran Nollywood Actor, Charles Okafor’s Inaugural outing as Brand Ambassador for AMPIO Smart Solutions, Nigeria.

    ...

Recent Comments

    Archives

    • December 2022
    • December 2021
    • November 2021
    • September 2021
    • May 2021
    • December 2020
    • April 2020
    • December 2019
    • November 2019
    • July 2019
    • May 2019
    • March 2019
    • November 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018

    Categories

    • Exclusive
    • Feature
    • Networking
    • Non classifié(e)
    • Press Release
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Featured Posts

    • Our boss showing uncommon stuff on the freeway @70

      0 comments
    • Ace Actor/Filmmaker, Charles Okafor (CEO, C and E Productions) standing on the Octagon, preparatory to the OFU Mixed Marshal Arts ( MMA) Fight, on December 4

      0 comments
    • C and E Productions is one of the official sponsors of the Maiden OFU Mixed Marshal Arts Fight

      0 comments
    • A Faith-Based Advocacy Film through Worship Music by the Zion Voices, led by Bro Chigozie

      0 comments
    • Veteran Nollywood Actor, Charles Okafor’s Inaugural outing as Brand Ambassador for AMPIO Smart Solutions, Nigeria.

      0 comments

    GET IN TOUCH

    T (0803) 201 1553
    Email: [email protected]

    C & E Productions
    Plot 753, Joseph Orru Street,Unity Estate, opposite Swiss Park Mall, Along Festac Link Road, Amuwo Odofin, Lagos State, Nigeria.

    Open in Google Maps

    social sharing
    • GET SOCIAL
    CANDEPRO

    © 2020 All rights reserved. CANDEPRO.

    TOP