
Responsive Table column width built with Bootstrap 5. Use one of the following classes to manipulate the width of the columns.

Check out [Bootstrap Table column width Documentation](https://mdbootstrap.com/docs/standard/extended/table-column-width/) for detailed instructions & even more examples.

## Basic example

[Bootstrap Table column with auto width:
![Bootstrap 5 Table column width](/assets/with-auto-width.png)](https://mdbootstrap.com/docs/standard/extended/table-column-width/#section-with-auto-width)

```html

<section>
    <!--Table-->
    <table class="table table-striped w-auto">
        <!--Table head-->
        <thead>
            <tr>
                <th>#</th>
                <th>Name</th>
                <th>Surname</th>
                <th>Country</th>
                <th>City</th>
                <th>Position</th>
                <th>Age</th>
            </tr>
        </thead>
        <!--Table head-->

        <!--Table body-->
        <tbody>
            <tr class="table-info">
                <th scope="row">1</th>
                <td>Kate</td>
                <td>Moss</td>
                <td>USA</td>
                <td>New York City</td>
                <td>Web Designer</td>
                <td>23</td>
            </tr>
            <tr>
                <th scope="row">2</th>
                <td>Anna</td>
                <td>Wintour</td>
                <td>United Kingdom</td>
                <td>London</td>
                <td>Frontend Developer</td>
                <td>36</td>
            </tr>
            <tr class="table-info">
                <th scope="row">3</th>
                <td>Tom</td>
                <td>Bond</td>
                <td>Spain</td>
                <td>Madrid</td>
                <td>Photographer</td>
                <td>25</td>
            </tr>
            <tr>
                <th scope="row">4</th>
                <td>Jerry</td>
                <td>Horwitz</td>
                <td>Italy</td>
                <td>Bari</td>
                <td>Editor-in-chief</td>
                <td>41</td>
            </tr>
            <tr class="table-info">
                <th scope="row">5</th>
                <td>Janis</td>
                <td>Joplin</td>
                <td>Poland</td>
                <td>Warsaw</td>
                <td>Video Maker</td>
                <td>39</td>
            </tr>
            <tr>
                <th scope="row">6</th>
                <td>Gary</td>
                <td>Winogrand</td>
                <td>Germany</td>
                <td>Berlin</td>
                <td>Photographer</td>
                <td>37</td>
            </tr>
            <tr class="table-info">
                <th scope="row">7</th>
                <td>Angie</td>
                <td>Smith</td>
                <td>USA</td>
                <td>San Francisco</td>
                <td>Teacher</td>
                <td>52</td>
            </tr>
            <tr>
                <th scope="row">8</th>
                <td>John</td>
                <td>Mattis</td>
                <td>France</td>
                <td>Paris</td>
                <td>Actor</td>
                <td>28</td>
            </tr>
            <tr class="table-info">
                <th scope="row">9</th>
                <td>Otto</td>
                <td>Morris</td>
                <td>Germany</td>
                <td>Munich</td>
                <td>Singer</td>
                <td>35</td>
            </tr>
        </tbody>
        <!--Table body-->
    </table>
    <!--Table-->
</section>


```


## How to use?

1. Download MDB 5 - free UI KIT

2. Choose your favourite customized component and click on the image

3. Copy & paste the code into your MDB project

[▶️ Subscribe to YouTube channel for web development tutorials & resources](https://www.youtube.com/MDBootstrap?sub_confirmation=1)

## More examples

[Bootstrap Table column with minimal width:
![Bootstrap 5 Table column width](/assets/with-minimal-width.png)](https://mdbootstrap.com/docs/standard/extended/table-column-width/#section-with-minimal-width)

[Bootstrap Table column with fixed width:
![Bootstrap 5 Table column width](/assets/with-fixed-width.png)](https://mdbootstrap.com/docs/standard/extended/table-column-width/#section-with-fixed-width)

[Bootstrap Table column with text-nowrap:
![Bootstrap 5 Table column width](/assets/with-text-nowrap.png)](https://mdbootstrap.com/docs/standard/extended/table-column-width/#section-with-text-nowrap)

___

## More extended Bootstrap documentation

<ul>
<li><a href="https://mdbootstrap.com/docs/standard/extended/bootstrap-address-form/">Bootstrap Address Form</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/avatar/">Bootstrap Avatar</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/back-to-top/">Bootstrap Back To Top Button</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/carousel-with-thumbnails/">Bootstrap Carousel Slider with Thumbnails</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/bullet-list/">Bootstrap Bullet list</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/chat/">Bootstrap Chat</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/code/">Bootstrap Code Blocks</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/comments/">Bootstrap Comments</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/bootstrap-comparison-table/">Bootstrap Comparison Table</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/credit-card/">Bootstrap Credit Card Form</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/drawer/">Bootstrap Drawer</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/dropdown-multilevel/">Bootstrap Nested Dropdown</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/faq/">Bootstrap FAQ component / section</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/gallery/">Bootstrap Gallery</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/hamburger-menu/">Bootstrap Hamburger Menu</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/bootstrap-invoice/">Bootstrap Invoice</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/jumbotron/">Bootstrap Jumbotron</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/login/">Bootstrap Login Form</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/maps/">Bootstrap Maps</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/media-object/">Bootstrap Media Object</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/mega-menu/">Bootstrap Mega Menu</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/multiselect/">Bootstrap Multiselect</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/news-feed/">Bootstrap News Feed</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/offcanvas/">Bootstrap Offcanvas</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/order-details/">Bootstrap Order Details</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/page-transitions/">Bootstrap Page Transitions</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/payment-forms/">Bootstrap Payment Forms</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/product-cards/">Bootstrap Product Cards</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/profiles/">Bootstrap Profiles</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/quotes/">Bootstrap Quotes</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/registration/">Bootstrap Registration Form</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/search-expanding/">Bootstrap Expanding Search Bar</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/select-with-custom-input//">Bootstrap Select with custom Input</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/shopping-carts/">Bootstrap Shopping Carts</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/side-navbar/">Bootstrap Side Navbar</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/sidebar/">Bootstrap Sidebar</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/social-media/">Bootstrap Social Media Icons & Buttons</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/square-buttons/">Bootstrap Square Buttons</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/bootstrap-survey-form/">Bootstrap Survey Form</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/testimonial-slider/">Bootstrap Testimonial Slider</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/testimonials/">Bootstrap Testimonials</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/textarea/">Bootstrap Textarea</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/css-text-animations/">Bootstrap Text Animations</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/timeline/">Bootstrap Timeline</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/to-do-list/">Bootstrap To Do List</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/video/">Bootstrap Video</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/video-carousel/">Bootstrap Video Carousel / Gallery</a></li>  
<li><a href="https://mdbootstrap.com/docs/standard/extended/weather/">Bootstrap Weather</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/dark-mode/">Bootstrap Dark Mode</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/padding/">Bootstrap Padding</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/modal-size/">Bootstrap Modal Size</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/modal-methods/">Bootstrap Modal Show, Close, Hide & Toggle</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/modal-backdrop/">Bootstrap Modal Backdrop</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/card-columns/">Bootstrap Card columns</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/card-deck/">Bootstrap Card Deck</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/table-filter/">Bootstrap Table Filter</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/table-responsive/">Bootstrap Table responsive</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/slider/">Bootstrap Sliders</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/slideshow/">Bootstrap Slideshow</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/logo/">Bootstrap Logo</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/popup/">Bootstrap Popup</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/max-width/">Bootstrap Max Width</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/hero/">Bootstrap Hero</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/inline-list/">Bootstrap Inline list</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/select-dropdown/">Bootstrap Select Dropdown</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/labels/">Bootstrap Labels</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/dialog/">Bootstrap Dialog</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/screen-sizes/">Bootstrap Screen Sizes</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/dropdown-button/">Bootstrap Dropdown Button</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/widgets/">Bootstrap Widgets & Addons</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/overlay/">Bootstrap Overlay</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/height/">Bootstrap Height</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/popover-on-hover/">Bootstrap Popover on hover</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/border-radius/">Bootstrap Border radius</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/table-fixed-header/">Bootstrap Table fixed header</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/side-menu/">Bootstrap Side Menu</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/vertical-navbar/">Bootstrap Vertical Navbar</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/flash-messages">Bootstrap Flash Messages</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/number-inputs/">Bootstrap Number Inputs</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/inline-block/">Bootstrap Inline Block</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/modal-form/">Bootstrap Modal Form</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/horizontal-list/">Bootstrap Horizontal list</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/side-panel/">Bootstrap Side panel</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/navbar-brand/">Bootstrap Navbar brand</a></li> 
<li><a href="https://mdbootstrap.com/docs/standard/extended/select-list/">Bootstrap Select list</a></li>
<li><a href="https://mdbootstrap.com/docs/standard/extended/cookie-consent//">Bootstrap Cookie Consent</a></li>

</ul>
