# Table Style 5

> This is a way to customize any table you wish by adding a class selector of table-style-5 to your component.

Source: https://tadabase.com/docs/snippets/table-style-5  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

![Screenshot for “Table Style 5”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/2022-09-26-23-51-50.gif)

This is a way to customize any table you wish by adding a class selector of table-style-5 to your component.

**Step 1**

**Add the following code to the header of your app.**

```
<style>
    .table-style-5 .table-wrap {
        background: none;
    }

    .table-style-5 h3 {

        padding-left: 7px;
        padding-bottom: 10px;
        margin: 0;
        font-weight: 500;
        color: #626262 !important;
        font-size: 2rem;
        text-transform: uppercase;
    }

    .table-style-5 .table-wrap table {
        border-collapse: separate;
        border-spacing: 0 1.7rem;
    }

    .table-style-5 table,
    .table-style-5 table>thead>tr>th,
    .table-style-5 table>tbody>tr>th,
    .table-style-5 table>tfoot>tr>th,
    .table-style-5 table>thead>tr>td,
    .table-style-5 table>tbody>tr>td,
    .table-style-5 table>tfoot>tr>td {
        border: none;
    }

    .table-style-5 {
        padding: 4rem;
        background: #f8f8f8;
    }

    .table-style-5 table>tbody>tr>td {
        color: #626262;
        font-family: Lato-Regular;
        font-size: 15px;
        color: #808080;
        line-height: 1.4;
        background-color: #ffffff;
        padding: 20px;
        font-weight: 500 !important;
        text-transform: capitalize;
    }

    .table-style-5 table>tbody tr {
        -webkit-transition: all .3s ease;
        transition: all .3s ease;
        background: #fff;
        box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .05);
    }

    .table-style-5 table>tbody>tr:not(.activeEdit):not(.tr-expandedx):not(.hoverFlat):hover {
        z-index: 200;
        -webkit-transform: translateY(-4px);
        transform: translateY(-4px);
    }

    .table-style-5 .table-responsive {
        /*border: 1px solid;*/
        border-radius: 1rem;
        padding: 1rem;
    }


    .table-style-5 table>thead>tr>th {
        font-weight: 600;
        color: #626262 !important;
        font-size: 13px;
        text-transform: uppercase;
        vertical-align: middle;
        background: #f8f8f8;

        padding-left: 20px;
        padding-right: 20px;
    }

    .table-style-5 .table-actions {
        border: none;
        background: none;
    }

    /* Multi-select checkbox */
    .table-style-5 input[type='checkbox'] {
        margin-top: -30px;
    }

    .table-style-5 input[type='checkbox'] {
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeSpeed;
        width: 20px;
        height: 20px;
        margin: 0;
        margin-right: 1px;
        display: block;
        float: left;
        position: relative;
        cursor: pointer;
    }

    .table-style-5 input[type='checkbox']:after {
        content: "";
        vertical-align: middle;
        text-align: center;
        line-height: 20px;
        position: absolute;
        cursor: pointer;
        height: 20px;
        width: 20px;
        left: 0;
        top: 0;
        font-size: 12px;
        -moz-box-shadow: inset 0 1px 1px #3699FF, 0 1px 0 #3699FF;
        border: 1px solid #80808070;
        background: #fff;

    }

    .table-style-5 input[type='checkbox']:hover:after,
    input[type='checkbox']:checked:hover:after {
        background: #1f74ff;
        content: '\2714';
        color: #fff;
    }

    .table-style-5 input[type='checkbox']:checked:after {
        background: #1f74ff;
        content: '\2714';
        color: #fff;
        border: 1px solid #80808070;
    }

    /* Search box */
    .table-style-5 .input-group input.form-control.input-sm.padder {
        border-top-left-radius: 1rem;
        border-bottom-left-radius: 1rem;
        border-right: none;
    }

    .table-style-5 .input-group-btn {
        border: 1px solid #cccccc;
        background: none;
        border-left: none;
        border-top-right-radius: 1rem;
        border-bottom-right-radius: 1rem;
    }

    .table-style-5 .input-group-btn .btn {
        background: none;
        color: #cccccc;
        padding: 0px 10px;
    }

    .table-style-5.input-group-btn .btn:focus {
        outline: none;
    }

    .table-style-5 .input-group-btn .btn:active {
        box-shadow: none;
    }

    /* Relaod button */
    .table-style-5 .table-actions .btn-primary {
        background: none;
        color: #2780e3;
        border: 1px solid #2780e3;
    }

    .table-style-5 .table-actions .btn-primary:hover {
        background: #2780e3;
        color: #fff;
        border: 1px solid #2780e3;
    }

    .table-style-5 .table-actions .btn-info {
        background: none;
        color: #9954bb;
        border: 1px solid #9954bb;
    }

    .table-style-5 .table-actions .btn-info:hover {
        background: #9954bb;
        color: #fff;
        border: 1px solid #9954bb;
    }

    .table-style-5 .table-actions .btn-danger {
        background: none;
        color: #ff0039;
        border: 1px solid #ff0039;
    }

    .table-style-5 .table-actions .btn-danger:hover {
        background: #ff0039;
        color: #fff;
        border: 1px solid #ff0039;
    }
</style>
```

![Screenshot for “Table Style 5”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/image-1664250970823.png)

**Step 2**

**Add "table-style-5" to the class selector of any table you wish, as seen in the image below.**

![Screenshot for “Table Style 5”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/image-1664251080967.png)
