Bootstrap snippet and html example. shopping and portfolio profile

Bootstrap 3.3.6 snippet "shopping and portfolio profile" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: profile,portfolio

HTML code

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

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<div class="container">
  <div class="row">
    <div class="col-sm-3">
      <div class="user-profile__avatar shadow-effect text-center">
        <img class="img-responsive center-block" src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="...">
        John Doe
        <p class="text-muted">Project Manager</p>
      </div>

      <div class="panel panel-default">
        <div class="panel-heading">
          User Menu
        </div>
        <div class="panel-body">
          <ul>
            <li><a href="#"><i class="fa fa-user"></i> My Profile</a></li>
            <li><a href="#"><i class="fa fa-edit"></i> Edit Profile</a></li>
            <li><a href="#"><i class="fa fa-envelope-o"></i> Messages</a></li>
            <li><a href="#"><i class="fa fa-sign-out"></i> Sign Out</a></li>
          </ul>
        </div>
      </div>

    </div>
    <div class="col-sm-9">
      <div class="row">
        <div class="col-sm-6">
          
          <!-- User name -->
          <h3 class="user-profile__title">John Doe</h3>
          
          <!-- User description -->
          <p class="user-profile__desc">
            Talented designer and passionate narrator.
          </p>
          <!-- User URL -->
          <div class="user-profile__url">
            <a href="https://bootdey.com/">https://bootdey.com/</a>
          </div>
          <!-- User social links -->
          <div class="social">
            <ul class="list-inline">
              <li>
                <a href="#" class="twitter"><i class="fa fa-twitter"></i></a>
              </li>
              <li>
                <a href="#" class="facebook"><i class="fa fa-facebook"></i></a>
              </li>
              <li>
                <a href="#" class="pinterest"><i class="fa fa-pinterest"></i></a>
              </li>
            </ul>
          </div>
        </div>
        <div class="col-sm-6">
          
          <!-- Profile info -->
          <ul class="user-profile__info">
            <li>
              <i class="fa fa-calendar-o"></i> Member for 180 days
            </li>
            <li>
              <i class="fa fa-clock-o"></i> Last seen 2 hours ago
            </li>
            <li>
              <i class="fa fa-eye"></i> 50 profile views
            </li>
          </ul>
        </div>
        <div class="col-sm-12">
          <div class="user-profile__tabs">
            <!-- Nav tabs -->
            <ul class="nav nav-tabs" role="tablist">
              <li role="presentation" class="active">
                <a href="#user-profile__portfolio" aria-controls="user-profile__portfolio" role="tab" data-toggle="tab" aria-expanded="true">My Portfolio</a>
              </li>
              <li role="presentation" class="">
                <a href="#user-profile__shopping-cart" aria-controls="user-profile__shopping-cart" role="tab" data-toggle="tab" aria-expanded="false">My Shopping Cart</a>
              </li>
            </ul>

            <!-- Tab panes -->
            <div class="tab-content">
              <div role="tabpanel" class="tab-pane fade active in" id="user-profile__portfolio">             
                <div class="row">
                  <div class="col-sm-6 col-md-6 col-lg-4">
                    <div class="portfolio__item">
                      <div class="portfolio-item__img">
                        <a href="portfolio-item.html">
                          <img src="https://www.bootdey.com/image/340x210/FF7F50/000000" class="img-responsive" alt="...">
                          <div class="portfolio-item__mask">
                            <div class="portfolio-item-mask__content">
                              <div class="portfolio-item-mask__title">
                                Image title
                              </div>
                              <div class="portfolio-item-mask__summary">
                                Pellentesque metus arcu, placerat nec porta in, ultricies id enim.
                              </div>
                            </div> <!-- / .portfolio-item-mask__content -->
                          </div> <!-- / .portfolio-item__mask -->
                        </a>
                      </div> <!-- / .portfolio-item__img -->
                    </div> <!-- / .portfolio__item -->
                  </div>
                  <div class="col-sm-6 col-md-6 col-lg-4">
                    <div class="portfolio__item">
                      <div class="portfolio-item__img">
                        <a href="portfolio-item.html">
                          <img src="https://www.bootdey.com/image/340x210/6495ED/000000" class="img-responsive" alt="...">
                          <div class="portfolio-item__mask">
                            <div class="portfolio-item-mask__content">
                              <div class="portfolio-item-mask__title">
                                Image title
                              </div>
                              <div class="portfolio-item-mask__summary">
                                Pellentesque metus arcu, placerat nec porta in, ultricies id enim.
                              </div>
                            </div> <!-- / .portfolio-item-mask__content -->
                          </div> <!-- / .portfolio-item__mask -->
                        </a>
                      </div> <!-- / .portfolio-item__img -->
                    </div> <!-- / .portfolio__item -->
                  </div>
                  <div class="col-sm-6 col-md-6 col-lg-4">
                    <div class="portfolio__item">
                      <div class="portfolio-item__img">
                        <a href="portfolio-item.html">
                          <img src="https://www.bootdey.com/image/340x210/9932CC/000000" class="img-responsive" alt="...">
                          <div class="portfolio-item__mask">
                            <div class="portfolio-item-mask__content">
                              <div class="portfolio-item-mask__title">
                                Image title
                              </div>
                              <div class="portfolio-item-mask__summary">
                                Pellentesque metus arcu, placerat nec porta in, ultricies id enim.
                              </div>
                            </div> <!-- / .portfolio-item-mask__content -->
                          </div> <!-- / .portfolio-item__mask -->
                        </a>
                      </div> <!-- / .portfolio-item__img -->
                    </div> <!-- / .portfolio__item -->
                  </div>
                  <div class="col-sm-6 col-md-6 col-lg-4">
                    <div class="portfolio__item">
                      <div class="portfolio-item__img">
                        <a href="portfolio-item.html">
                          <img src="https://www.bootdey.com/image/340x210/FF1493/000000" class="img-responsive" alt="...">
                          <div class="portfolio-item__mask">
                            <div class="portfolio-item-mask__content">
                              <div class="portfolio-item-mask__title">
                                Image title
                              </div>
                              <div class="portfolio-item-mask__summary">
                                Pellentesque metus arcu, placerat nec porta in, ultricies id enim.
                              </div>
                            </div> <!-- / .portfolio-item-mask__content -->
                          </div> <!-- / .portfolio-item__mask -->
                        </a>
                      </div> <!-- / .portfolio-item__img -->
                    </div> <!-- / .portfolio__item -->

                  </div>
                  <div class="col-sm-6 col-md-6 col-lg-4">

                    <div class="portfolio__item">
                      <div class="portfolio-item__img">
                        <a href="portfolio-item.html">
                          <img src="https://www.bootdey.com/image/340x210/20B2AA/000000" class="img-responsive" alt="...">
                          <div class="portfolio-item__mask">
                            <div class="portfolio-item-mask__content">
                              <div class="portfolio-item-mask__title">
                                Image title
                              </div>
                              <div class="portfolio-item-mask__summary">
                                Pellentesque metus arcu, placerat nec porta in, ultricies id enim.
                              </div>
                            </div> <!-- / .portfolio-item-mask__content -->
                          </div> <!-- / .portfolio-item__mask -->
                        </a>
                      </div> <!-- / .portfolio-item__img -->
                    </div> <!-- / .portfolio__item -->

                  </div>
                  <div class="col-sm-6 col-md-6 col-lg-4">

                    <div class="portfolio__item">
                      <div class="portfolio-item__img">
                        <a href="portfolio-item.html">
                          <img src="https://www.bootdey.com/image/340x210/B0C4DE/000000" class="img-responsive" alt="...">
                          <div class="portfolio-item__mask">
                            <div class="portfolio-item-mask__content">
                              <div class="portfolio-item-mask__title">
                                Image title
                              </div>
                              <div class="portfolio-item-mask__summary">
                                Pellentesque metus arcu, placerat nec porta in, ultricies id enim.
                              </div>
                            </div> <!-- / .portfolio-item-mask__content -->
                          </div> <!-- / .portfolio-item__mask -->
                        </a>
                      </div> <!-- / .portfolio-item__img -->
                    </div> <!-- / .portfolio__item -->
                  </div>
                </div> <!-- / .row -->
              </div> <!-- / .tab-pane -->
              <div role="tabpanel" class="tab-pane fade" id="user-profile__shopping-cart">
                <div class="table-responsive">
                  <table class="table table-bordered shopping-cart__table">
                  <thead>
                    <tr>
                      <th>Preview</th>
                      <th>Item</th>
                      <th>Price</th>
                      <th>Quantity</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr class="js-shop__item">
                      <td>
                        <img class="img-responsive shopping-cart-item__img" src="https://www.bootdey.com/image/50x50/" alt="...">
                      </td>
                      <td>
                        <div class="shopping-cart-item__title">
                          Product Title
                        </div>
                        <div class="shopping-cart-item__desc">
                          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.
                        </div>
                      </td>
                      <td>$<span class="js-shop-item__price">59.99</span></td>
                      <td>
                        <input type="number" class="js-shop-item__quantity form-control" min="1" max="100" step="1" value="1">
                      </td>
                    </tr>
                    <tr class="js-shop__item">
                      <td>
                        <img class="img-responsive shopping-cart-item__img" src="https://www.bootdey.com/image/50x50/" alt="...">
                      </td>
                      <td>
                        <div class="shopping-cart-item__title">
                          Product Title
                        </div>
                        <div class="shopping-cart-item__desc">
                          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.
                        </div>
                      </td>
                      <td>$<span class="js-shop-item__price">59.99</span></td>
                      <td>
                        <input type="number" class="js-shop-item__quantity form-control" min="1" max="100" step="1" value="1">
                      </td>
                    </tr>
                    <tr class="js-shop__item">
                      <td>
                        <img class="img-responsive shopping-cart-item__img" src="https://www.bootdey.com/image/50x50/" alt="...">
                      </td>
                      <td>
                        <div class="shopping-cart-item__title">
                          Product Title
                        </div>
                        <div class="shopping-cart-item__desc">
                          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id ipsum varius, tincidunt odio nec, placerat enim.
                        </div>
                      </td>
                      <td>$<span class="js-shop-item__price">59.99</span></td>
                      <td>
                        <input type="number" class="js-shop-item__quantity form-control" min="1" max="100" step="1" value="1">
                      </td>
                    </tr>
                  </tbody>
                  </table>
                </div> <!-- / .table-responsive -->
                <ul class="shopping-cart__checkout">
                  <li><strong>Total Price</strong>: $<span class="js-shop__total-price"></span></li>
                  <li><strong>Shipping</strong>: Free</li>
                  <li>
                    <a href="#" class="btn btn-secondary">Proceed to checkout</a>
                  </li>
                </ul>
              </div> <!-- / .tab-pane -->
            </div> <!-- / .tab-content -->
          </div>
        </div>
      </div> <!-- / .row -->
    </div>
  </div> <!-- / .row -->
</div>

CSS code

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

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

/**
 * User Profile
 */
.user-profile__avatar,
.user-avatar {
  padding: 10px;
  margin-bottom: 30px;
  border: 1px solid #eee;
  border-radius: 3px;
}
.user-profile__avatar > img,
.user-avatar > img {
  margin-bottom: 10px;
  border-radius: 2px;
}
.user-profile__title {
  font-weight: 700;
}
.user-profile__desc {
  color: #777777;
}
.user-profile__url {
  margin-bottom: 20px;
}
.user-profile__info {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}
.user-profile__info > li {
  padding: 5px 0;
}
.user-profile__info > li .fa {
  margin-right: 10px;
}
.user-profile__tabs {
  margin-top: 40px;
}




/**
 * Portfolio
 */
/* Portfolio navigation */
.portfolio__nav {
  list-style: none;
  padding-left: 0;
  margin-bottom: 40px;
  margin-top: -20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.portfolio__nav > li {
  display: inline-block;
}
.portfolio__nav > li > a {
  display: block;
  padding: 20px 10px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: #757575;
  -webkit-transition: all .05s linear;
       -o-transition: all .05s linear;
          transition: all .05s linear;
}
.portfolio__nav > li > a:hover,
.portfolio__nav > li > a:focus {
  color: #333333;
  text-decoration: none;
}
.portfolio__nav > li.active > a {
  color: #ed3e49;
  border-bottom-color: #ed3e49;
}
@media (max-width: 767px) {
  .portfolio__nav {
    border-bottom: 0;
  }
  .portfolio__nav > li {
    display: block;
  }
  .portfolio__nav > li > a {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .portfolio__nav > li.active > a {
    font-weight: 600;
  }
}
/* Portfolio thumbnails */
.isotope-item {
  padding-left: 10px;
  padding-right: 10px;
}
/* Firefox bug fix */
@media (min-width: 1200px) {
  .col-lg-4.isotope-item {
    width: 33%;
  }
}
.portfolio__item {
  margin-bottom: 20px;
}
.portfolio-item__img {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.portfolio-item__img:hover .portfolio-item__mask {
  background: rgba(255, 255, 255, 0.9);
}
.portfolio-item__img:hover .portfolio-item-mask__content {
  top: 0;
}
.portfolio-item__mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  -webkit-transition: background .3s;
       -o-transition: background .3s;
          transition: background .3s;
}
@media (max-width: 767px) {
  .portfolio-item__mask {
    visibility: hidden;
  }
}
.portfolio-item-mask__content {
  position: absolute;
  display: block;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
  overflow: hidden;
  color: #333333;
  text-decoration: none;
  -webkit-transition: top .3s;
       -o-transition: top .3s;
          transition: top .3s;
}
.portfolio-item-mask__title {
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
}
.portfolio-item-mask__summary {
  font-size: 12px;
}
.portfolio-item__recent > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

.tab-pane {
    padding-top: 20px;
}

.panel-body > ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.panel-body > ul > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.panel-body > ul > li > a {
    display: block;
    padding: 8px 0;
    font-weight: 600;
    font-size: 11px;
    color: #777777;
    text-transform: uppercase;
    text-decoration: none;
}

Similar snippets

Bootstrap example and template. activity page

activity page

Bootstrap example and template. user page with input post

user page with input post

Bootstrap example and template. portfolio grid with filter menu and isotopejs

portfolio grid with filter menu and isotopejs

Bootstrap example and template. social media resumen profile

social media resumen profile

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. Basic table email template

Basic table email template

Bootstrap example and template. Clear inbox list

Clear inbox list

Bootstrap example and template. Social post

Social post

FAQ

How do I use this snippet?

Include Bootstrap 3.3.6, 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 3.3.6.

Bootstrap example and template. shopping and portfolio profile

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 11.1K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.3.6

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.3.6 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