Bootstrap snippet and html example. files list widget

Bootstrap 4.4.1 snippet "files list widget" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: files,list,4,bs4

HTML code

Clean, semantic HTML that powers this Bootstrap 4.4.1 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<div class="container">
<div class="row">
<div class="col-md-6">
    <div class="card m-b-30">
        <div class="card-header">                                
            <div class="row align-items-center">
                <div class="col-8">
                    <h5 class="card-title mb-0">Important Files</h5>
                </div>
                <div class="col-4">
                    <ul class="list-inline-group text-right mb-1 pl-0">
                        <li class="list-inline-item mr-0 font-12"><i class="feather icon-more-vertical- font-20 text-primary"></i></li>
                    </ul>                                        
                </div>
            </div>
        </div>
        <div class="card-body">
            <div class="product-file-type">
                <ul class="list-unstyled">
                    <li class="media mb-3">
                        <span class="mr-3 align-self-center img-icon primary-rgba text-primary">.doc</span>
                        <div class="media-body">
                        <h5 class="font-16 mb-1">Marketing Guidelines<i class="feather icon-download-cloud float-right"></i></h5>
                        <p>.doc, 5.3 MB</p>
                        </div>
                    </li>
                    <li class="media mb-3">
                        <span class="mr-3 align-self-center img-icon success-rgba text-success">.xls</span>
                        <div class="media-body">
                        <h5 class="font-16 mb-1">Complete Product Sheet<i class="feather icon-download-cloud float-right"></i></h5>
                        <p>.xls, 2.5 MB</p>
                        </div>
                    </li>
                    <li class="media mb-3">
                        <span class="mr-3 align-self-center img-icon danger-rgba text-danger">.pdf</span>
                        <div class="media-body">
                        <h5 class="font-16 mb-1">Annual Sales Report 2018-19<i class="feather icon-download-cloud float-right"></i></h5>
                        <p>.pdf, 10.5 MB</p>
                        </div>
                    </li>
                    <li class="media">
                        <span class="mr-3 align-self-center img-icon info-rgba text-info">.zip</span>
                        <div class="media-body">
                        <h5 class="font-16 mb-1">Brand Photography<i class="feather icon-download-cloud float-right"></i></h5>
                        <p>.zip, 53.2 MB</p>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="col-md-6">
    <div class="card m-b-30">
        <div class="card-header">                                
            <div class="row align-items-center">
                <div class="col-8">
                    <h5 class="card-title mb-0">Important Files</h5>
                </div>
                <div class="col-4">
                    <ul class="list-inline-group text-right mb-1 pl-0">
                        <li class="list-inline-item mr-0 font-12"><i class="feather icon-more-vertical- font-20 text-primary"></i></li>
                    </ul>                                        
                </div>
            </div>
        </div>
        <div class="card-body">
            <div class="product-file-type">
                <ul class="list-unstyled">
                    <li class="media mb-3">
                        <span class="mr-3 align-self-center img-icon primary-rgba text-primary">.doc</span>
                        <div class="media-body">
                        <h5 class="font-16 mb-1">Marketing Guidelines<i class="feather icon-download-cloud float-right"></i></h5>
                        <p>.doc, 5.3 MB</p>
                        </div>
                    </li>
                    <li class="media mb-3">
                        <span class="mr-3 align-self-center img-icon success-rgba text-success">.xls</span>
                        <div class="media-body">
                        <h5 class="font-16 mb-1">Complete Product Sheet<i class="feather icon-download-cloud float-right"></i></h5>
                        <p>.xls, 2.5 MB</p>
                        </div>
                    </li>
                    <li class="media mb-3">
                        <span class="mr-3 align-self-center img-icon danger-rgba text-danger">.pdf</span>
                        <div class="media-body">
                        <h5 class="font-16 mb-1">Annual Sales Report 2018-19<i class="feather icon-download-cloud float-right"></i></h5>
                        <p>.pdf, 10.5 MB</p>
                        </div>
                    </li>
                    <li class="media">
                        <span class="mr-3 align-self-center img-icon info-rgba text-info">.zip</span>
                        <div class="media-body">
                        <h5 class="font-16 mb-1">Brand Photography<i class="feather icon-download-cloud float-right"></i></h5>
                        <p>.zip, 53.2 MB</p>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
</div>
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 4.4.1 to keep the design, spacing, and responsiveness consistent.

body{
    background:#eee;
    margin-top:20px;
    color: #8A98AC;
}

.product-file-type .img-icon {
  width: 46px;
  height: 46px;
  line-height: 46px;
  font-weight: 600;
  border-radius: 50%;
  font-size: 18px;
  text-align: center;
}
/* -- Text Color -- */
.text-white {
  color: #ffffff !important;
}

.text-black {
  color: #282828 !important;
}

.text-muted {
  color: #8A98AC !important;
}

.text-primary {
  color: #6e81dc !important;
}

.text-secondary {
  color: #718093 !important;
}

.text-success {
  color: #5fc27e !important;
}

.text-danger {
  color: #f44455 !important;
}

.text-warning {
  color: #fcc100 !important;
}

.text-info {
  color: #72d0fb !important;
}

.text-light {
  color: #dcdde1 !important;
}

.text-dark {
  color: #2d3646 !important;
}


.primary-rgba {
  background-color: rgba(110, 129, 220, 0.1);
}

.secondary-rgba {
  background-color: rgba(113, 128, 147, 0.1);
}

.success-rgba {
  background-color: rgba(95, 194, 126, 0.1);
}

.danger-rgba {
  background-color: rgba(244, 68, 85, 0.1);
}

.warning-rgba {
  background-color: rgba(252, 193, 0, 0.1);
}

.info-rgba {
  background-color: rgba(114, 208, 251, 0.1);
}

.light-rgba {
  background-color: rgba(220, 221, 225, 0.1);
}

.dark-rgba {
  background-color: rgba(45, 54, 70, 0.1);
}

.card-header:first-child {
    border-radius: calc(5px - 1px) calc(5px - 1px) 0 0;
    padding: 15px 20px;
}
.card-header:first-child {
    border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
}
.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: transparent;
}

.card {
    border: none;
    border-radius: 3px;
    background-color: #ffffff;
}
.m-b-30 {
    margin-bottom: 30px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #282828;
}

Similar snippets

Bootstrap example and template. contacts lab

contacts lab

Bootstrap example and template. Blog post list

Blog post list

Bootstrap example and template. bs4 wishlist profile page

bs4 wishlist profile page

Bootstrap example and template. bs4 candidates listing page

bs4 candidates listing page

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. portfolio with category filter and masonry

portfolio with category filter and masonry

Bootstrap example and template. Particles js banner

Particles js banner

Bootstrap example and template. responsive video with description

responsive video with description

FAQ

How do I use this snippet?

Include Bootstrap 4.4.1, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 4.4.1.

Bootstrap example and template. files list widget

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 15.6K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 4.4.1

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

This code example is based on bootstrap 4.4.1 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working