3 Bootstrap Ribbon Examples

This post contains a total of 3 Bootstrap Ribbon Examples with Source Code. All these Ribbons are made using Bootstrap.

You can use the source code of these examples with credits to the original owner.

Related Posts

Bootstrap Ribbon Examples

1. Bootstrap ribbon

Made by Majid Azizian. Source

Bootstrap ribbon
<!DOCTYPE html>
<html lang="en" >
<head>
  <title></title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<style>
.box {
  height: 600px;
  background: #999;
  position:relative;
  z-index:1;
  width:100%;
  margin:20px auto;
}
.head-box {
  width: 100%;
  height: 300px;
  background-color: #374660;
  padding : 25px;
  color : #fff;
}
.head-box h3 {
  font-size : 38px;
  font-style : bolder;
  text-align : center;
}
.head-box h4 {
  font-size : 28px;
  font-style : bolder;
  text-align : center;
}
.head-box p {
  text-align : justify
}

.body-box {
  width : 100%;
  padding : 25px;
  
}

.body-box p {
  text-align : justify;
}

.ribbon {
  position:relative;
    padding:10px 30px;
    margin:0 -30px 20px;
    font-size:18px;
    line-height:20px;
    font-weight:bold;
    text-align:center;
    color:#fff;
    background:#87A800;
    text-shadow:0 1px 1px rgba(0,0,0,0.2);
    -webkit-box-shadow:0 1px 1px rgba(0,0,0,0.2);
       -moz-box-shadow:0 1px 1px rgba(0,0,0,0.2);
            box-shadow:0 1px 1px rgba(0,0,0,0.2);
    zoom:1;
}
.ribbon:before,
.ribbon:after {
    content:"";
    position:absolute;
    /* See "NOTE 2" */
    z-index:-1;
    top:100%;
    left:0;
    border-width:0 10px 10px 0;
    border-style:solid;
    border-color:transparent #647D01;
}

.ribbon:after {
    left:auto;
    right:0;
    border-width:0 0 10px 10px;
}
</style>
</head>
<body>
<div class="col-md-4">
 
 </div>

<div class="col-md-4">
  <div class="box">
    <div class="head-box">
      <h3>Package Name</h3>
      
      <h4>Monthly 6900 $</h4>
      <h5 class="ribbon">Hourly price : 1.5 $</h5>
      <hr>
      <p>Lorem ipsum dolor sit amet, oporteat percipitur pri no, et sit prima explicari cotidieque. Id ius euismod signiferumque. Cum in purto vide, ut reque deseruisse mea. Vim causae vidisse volumus cu, cum quod tota mentitum ut.

</p>
    </div>
    <div class="body-box">
      <p>Lorem ipsum dolor sit amet, oporteat percipitur pri no, et sit prima explicari cotidieque. Id ius euismod signiferumque. Cum in purto vide, ut reque deseruisse mea. Vim causae vidisse volumus cu, cum quod tota mentitum ut.

</p>
      <p>Lorem ipsum dolor sit amet, oporteat percipitur pri no, et sit prima explicari cotidieque. Id ius euismod signiferumque. Cum in purto vide, ut reque deseruisse mea. Vim causae vidisse volumus cu, cum quod tota mentitum ut.

</p>
      <p>Lorem ipsum dolor sit amet, oporteat percipitur pri no, et sit prima explicari cotidieque. Id ius euismod signiferumque. Cum in purto vide, ut reque deseruisse mea. Vim causae vidisse volumus cu, cum quod tota mentitum ut.

</p>
      <p>Lorem ipsum dolor sit amet, oporteat percipitur pri no, et sit prima explicari cotidieque. Id ius euismod signiferumque. Cum in purto vide, ut reque deseruisse mea. Vim causae vidisse volumus cu, cum quod tota mentitum ut.

</p>
    </div>
  </div>
 </div>
<div class="col-md-4">
 </div>
</body>
</html>

2. Bootstrap Ribbon Buttons

Made by Vivek. Source

Bootstrap Ribbon Buttons
<!DOCTYPE html>
<html lang="en" >
<head>
  <title></title>
  <link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>
<style>
/*Remove that CSS*/
.col-md-3 {
    margin-left:5%;
    }
/*Remove that CSS*/



button {
  margin: 20px 0;
  line-height: 34px;
  position: relative;
  cursor: pointer;
  user-select: none;
  outline:none !important;
  width:100%;
}

button:active {

  outline:none;
}

button.ribbon {
  
  outline:none;
  outline-color: transparent;
}
button.ribbon:before, button.ribbon:after {
  top: 5px;
  z-index: -10;
}
button.ribbon:before {
  border-color: #53dab6 #53dab6 #53dab6 transparent;
  left: -25px;
  border-width: 17px;
}
button.ribbon:after {
  border-color: #53dab6 transparent #53dab6 #53dab6;
  right: -25px;
  border-width: 17px;
}

button:before, button:after {
  content: '';
  position: absolute;
  height: 0;
  width: 0;
  border-style: solid;
  border-width: 0;
  outline:none;
}

button.btn-default:before {
  border-color: #757575 #757575 #757575 transparent;
    }
    button.btn-default:after {
  border-color: #757575 transparent #757575 #757575;
    }
    
    
    
    button.btn-primary:before {
  border-color: #2e6da4 #2e6da4 #2e6da4 transparent;
    }
    button.btn-primary:after {
  border-color: #2e6da4 transparent #2e6da4 #2e6da4;
    }
    
    
    button.btn-success:before {
  border-color: #398439 #398439 #398439 transparent;
    }
    button.btn-success:after {
  border-color: #398439 transparent #398439 #398439;
    }
    
    
    button.btn-info:before {
  border-color: #269abc #269abc #269abc transparent;
    }
    button.btn-info:after {
  border-color: #269abc transparent #269abc #269abc;
    }
    
    
    button.btn-warning:before {
  border-color: #d58512 #d58512 #d58512 transparent;
    }
    button.btn-warning:after {
  border-color: #d58512 transparent #d58512 #d58512;
    }
    
    
    button.btn-danger:before {
  border-color: #ac2925 #ac2925 #ac2925 transparent;
    }
    button.btn-danger:after {
  border-color: #ac2925 transparent #ac2925 #ac2925;
    }
</style>
</head>
<body>
  <div class="container">
	<div class="row">
		<h2>Bootstrap Ribbon Buttons</h2>
	</div>
    
    <div class="row">
    
    <div class="col-md-6">       <!-- Standard button -->
<button type="button" class="btn btn-default ribbon">Default</button>

<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<button type="button" class="btn btn-primary ribbon">Primary</button>

<!-- Indicates a successful or positive action -->
<button type="button" class="btn btn-success ribbon">Success</button>

<!-- Contextual button for informational alert messages -->
<button type="button" class="btn btn-info ribbon">Info</button>

<!-- Indicates caution should be taken with this action -->
<button type="button" class="btn btn-warning ribbon">Warning</button>

<!-- Indicates a dangerous or potentially negative action -->
<button type="button" class="btn btn-danger ribbon">Danger</button>

<!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
</div>
  <div class="col-md-3 ">       <!-- Standard button -->
<button type="button" class="btn btn-default ribbon">Default</button>

<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<button type="button" class="btn btn-primary ribbon">Primary</button>

<!-- Indicates a successful or positive action -->
<button type="button" class="btn btn-success ribbon">Success</button>

<!-- Contextual button for informational alert messages -->
<button type="button" class="btn btn-info ribbon">Info</button>

<!-- Indicates caution should be taken with this action -->
<button type="button" class="btn btn-warning ribbon">Warning</button>

<!-- Indicates a dangerous or potentially negative action -->
<button type="button" class="btn btn-danger ribbon">Danger</button>

<!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
</div>

  <div class="col-md-2 pull-right">       <!-- Standard button -->
<button type="button" class="btn btn-default  ribbon">Default</button>

<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<button type="button" class="btn btn-primary ribbon">Primary</button>

<!-- Indicates a successful or positive action -->
<button type="button" class="btn btn-success ribbon">Success</button>

<!-- Contextual button for informational alert messages -->
<button type="button" class="btn btn-info ribbon">Info</button>

<!-- Indicates caution should be taken with this action -->
<button type="button" class="btn btn-warning ribbon">Warning</button>

<!-- Indicates a dangerous or potentially negative action -->
<button type="button" class="btn btn-danger ribbon">Danger</button>

<!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
</div>
    </div>
</div>

</body>
</html>

3. Bootstrap Ribbon Row

Made by Matt Sim. Source

Bootstrap Ribbon Row
<!DOCTYPE html>
<html lang="en" >
<head>
  <title></title>
  <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css'>
<style>
/*Remove that CSS*/
.col-md-3 {
    margin-left:5%;
    }
/*Remove that CSS*/



button {
  margin: 20px 0;
  line-height: 34px;
  position: relative;
  cursor: pointer;
  user-select: none;
  outline:none !important;
  width:100%;
}

button:active {

  outline:none;
}

row.ribbon {
  
  outline:none;
  outline-color: transparent;
}
row.ribbon:before, row.ribbon:after {
  top: 5px;
  z-index: -10;
}
row.ribbon:before {
  border-color: #53dab6 #53dab6 #53dab6 transparent;
  left: -25px;
  border-width: 17px;
}
row.ribbon:after {
  border-color: #53dab6 transparent #53dab6 #53dab6;
  right: -25px;
  border-width: 17px;
}

row:before, row:after {
  content: '';
  position: absolute;
  height: 0;
  width: 0;
  border-style: solid;
  border-width: 0;
  outline:none;
}

.row.ribbon.red {
  background-color:red;
  color:white;
}
</style>
</head>
<body>
  <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->

<div class="container">
	<div class="row">
		<h2>Bootstrap Ribbon Row</h2>
	</div>
    
  <div class="row ribbon red">
    <div class="col-md-12">
      test
    </div>
  </div>
</div>
</body>
</html>