Bootstrap snippet and html example. carbonads ad example

Bootstrap 4.1.1 snippet "carbonads ad example" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: cards

HTML code

Clean, semantic HTML that powers this Bootstrap 4.1.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-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/FFB6C1/000000" alt="example design logo">
                <div class="inner-wrapper">
                  <p>Test the UX of your website. Diagnose problem areas &amp; prove new designs work.</p>
                  <p class="fine-print">ads via Carbon</p>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/87CEFA/000000" alt="example design logo">
                <div class="inner-wrapper">
                  <p>Test the UX of your website. Diagnose problem areas &amp; prove new designs work.</p>
                  <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/B0C4DE/000000" alt="example business logo">
                <div class="inner-wrapper">
                  <p>The new generation of project management tools is here and it’s visual.</p>
                  <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>
    </div>
    
    <div class="row">   
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/48D1CC/000000" alt="example development logo">
                <div class="inner-wrapper">
                  <p>Own your code from end to end. Resolve errors way faster right in your workflow.</p>
                  <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/D3D3D3/000000" alt="example design logo">
                <div class="inner-wrapper">
                  <p>Beautifully simple creative portfolio websites, included with Creative Cloud.</p>
                  <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/48D1CC/000000" alt="example design logo">
                <div class="inner-wrapper">
                  <p>Introduce yourself. Properly. MOO premium Business Cards, Postcards, Stickers and more.</p>
                  <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>
    </div>
    <div class="row">   
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/87CEFA/000000" alt="example development logo">
                <div class="inner-wrapper">
                <p>What will your code do? Get started for free.</p>
                <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>   
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/B0C4DE/000000" alt="example business logo">
                <div class="inner-wrapper">
                  <p>Want your team to do more in less time? Try Asana today.</p>
                  <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>   
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/ADD8E6/000000" alt="example design logo">
                <div class="inner-wrapper">
                <p>Make your next move with an impressive portfolio website. Start your free trial.</p>
                <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>
    </div>
    <div class="row">   
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/48D1CC/000000" alt="example business logo">
                <div class="inner-wrapper">
                <p>Understand user behavior &amp; ship product faster. Try Amplitude free today.</p>
                <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>    
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/FFDEAD/000000" alt="example business logo">
                <div class="inner-wrapper">
                <p>All the tools your team needs in one place. Slack: Where work happens.</p>
                <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>  
        <div class="col-md-4">
            <div class="carbon-example flex-wrapper">
                <img src="https://www.bootdey.com/image/200x200/DDA0DD/000000" alt="example design logo">
                <div class="inner-wrapper">
                <p>FullStory shows you bugs, so you don't have to repro them yourself. Use it now!</p>
                <p class="fine-print">block via Carbon</p>
                </div>
            </div>
        </div>   
    </div>
</div>

CSS code

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

body{margin-top:20px;}

.carbon-example {
  padding: 8px;
  background-color: #fff;
  width: 295px;
  box-sizing: border-box;
  border-radius: 6px;
  -webkit-box-align: start;
  -ms-flex-align: start;
  -webkit-align-items: flex-start;
  -moz-align-items: flex-start;
  align-items: flex-start;
  position: relative;
  z-index: 5;
  box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.1);
  margin-top:20px;
}

.carbon-example img {
  margin-right: 9px;
  max-width: 125px;
}

.carbon-example .inner-wrapper {
  text-align: left;
}

.carbon-example .inner-wrapper p {
  font-size: 12px;
  line-height: 1.33;
  margin: 8px 0;
}

.carbon-example .inner-wrapper p.fine-print {
  font-size: 8px;
  color: #C5CDD0;
  line-height: 1.25;
  text-transform: uppercase;
  font-weight: 500;
}

.flex-wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between;
}
@media screen and (max-width: 991px) {
  .flex-wrapper.two-col {
    display: block;
    text-align: center;
  }
}

.flex-wrapper.two-col > * {
  width: 50%;
}

.flex-wrapper.two-col > *:first-of-type {
  padding-right: 130px;
}
@media screen and (max-width: 991px) {

  .flex-wrapper.two-col > * {
    width: 100%;
  }

  .flex-wrapper.two-col > *:first-of-type {
    padding-right: 0;
  }
}

.flex-wrapper.two-col.reversed > *:first-of-type {
  order: 2;
  padding-right: 0;
}
@media screen and (min-width: 992px) {
  .flex-wrapper.two-col.reversed > *:first-of-type {
    padding-left: 130px;
  }
}

.flex-wrapper.three-col {
  text-align: left;
  -webkit-box-align: start;
  -ms-flex-align: start;
  -webkit-align-items: flex-start;
  -moz-align-items: flex-start;
  align-items: flex-start;
  margin-top: 40px;
}
@media screen and (max-width: 767px) {
  .flex-wrapper.three-col {
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}
.flex-wrapper.three-col > * {
  width: 33.3%;
}
@media screen and (max-width: 767px) {
  .flex-wrapper.three-col > * {
    width: 100%;
  }
}
@media screen and (min-width: 768px) {
  .flex-wrapper.three-col li {
    padding-left: 20px;
    padding-right: 20px;
  }
  .flex-wrapper.three-col li:first-child {
    padding-left: 0;
  }
  .flex-wrapper.three-col li:last-child {
    padding-right: 0;
  }
}

.flex-wrapper.three-col .flex-wrapper {
  -webkit-box-align: start;
  -ms-flex-align: start;
  -webkit-align-items: flex-start;
  -moz-align-items: flex-start;
  align-items: flex-start;
  margin-top: 0;
}
@media screen and (max-width: 767px) {
  .flex-wrapper.three-col .flex-wrapper {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
  }

  .flex-wrapper.three-col .flex-wrapper:not(:first-of-type) {
    margin-top: 40px;
  }
}

.flex-wrapper.three-col .flex-wrapper .icon {
  top: 0;
  transform: none;
}

Similar snippets

Bootstrap example and template. team members cards

team members cards

Bootstrap example and template. user cards block

user cards block

Bootstrap example and template. bs4 image box

bs4 image box

Bootstrap example and template. blog post cards

blog post cards

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. Social Media Button Design

Social Media Button Design

Bootstrap example and template. Chat room with right list

Chat room with right list

Bootstrap example and template. circle photo with div change color

circle photo with div change color

FAQ

How do I use this snippet?

Include Bootstrap 4.1.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.1.1.

Bootstrap example and template. carbonads ad example

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

Bootstrap 4.1.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.1.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