S3 Badges built with pure CSS which is easy to use in any project please read the complete documentation we have briefly define the usage of s3-badges.
Designed and built with all the love in the world by @Shaz3e.
.s3-badge-left-small
.s3-badge-left
.s3-badge-left-big
.s3-badge-red
.s3-badge-green
.s3-badge-blue
.s3-badge-yellow
.s3-badge-pink
.s3-badge-purple
.s3-badge-light-green
.s3-badge-white
.s3-badge-gray
.s3-badge-black
.s3-badge-right-small
.s3-badge-right
.s3-badge-right-big
.s3-badge-red
.s3-badge-green
.s3-badge-blue
.s3-badge-yellow
.s3-badge-pink
.s3-badge-purple
.s3-badge-light-green
.s3-badge-white
.s3-badge-gray
.s3-badge-black
To use S3-Badges is just simple as a piece of cake you just need to keep 3 things in mind. WHERE, HOW & WHICH
In addition to including the s3-badges.css file in the head of your HTML file, you will need to create a parent div or element with position: relative
. Within this element, you will place the badges HTML code, as shown below.
S3-Badge has simple logic as said only 3 things you need to keep in mind let's have a look on some examples
<div class="s3-badge-left-small"> <div class="s3-badge-text-red">Ribbon</div> </div>
<div class="s3-badge-left"> <div class="s3-badge-text-red">Ribbon</div> </div>
<div class="s3-badge-left-big"> <div class="s3-badge-text-red">Ribbon</div> </div>
<div class="s3-badge-right-small"> <div class="s3-badge-text-red">Ribbon</div> </div>
<div class="s3-badge-right"> <div class="s3-badge-text-red">Ribbon</div> </div>
<div class="s3-badge-right-big"> <div class="s3-badge-text-red">Ribbon</div> </div>
Example div element with relative positioning and other styling:
.yourClass{ position:relative; /* This is important */ float:left; margin:2.5%; width:19.7%; height:200px; border:solid 1px #f0f0f0; }
Just the badge portion:
<div class="s3-badge-left-big"> <div class="s3-badge-text-red">Ribbon</div> </div>
Badge placed within a relative positioned div element:
<div class="yourClass"> <!-- start badge --> <div class="s3-badge-left-big"> <div class="s3-badge-text-red">Ribbon</div> </div> <!-- end badge --> <!-- your content goes here --> </div>