ribbon style : demo 5

ribbon

ribbon

ribbon

ribbon

HTML

(Icon Fonts Used : Fontawesome & CSS Framwork: Bootstrap)
                        

ribbon

CSS

(Fonts required: Kanit.)
                        :root{
                            --white:#fff;
                            --color1:#e056fd;
                            --color2:#be2edd;
                            --background:#dfe4ea;
                        }
                        .ribbon{
                            color: var(--white);
                            background: var(--background);
                            font-family: "Kanit", sans-serif;
                            font-size: 24px;
                            font-weight:700;
                            text-transform: capitalize;
                            position: relative;
                            padding: 0 0 150px;
                            margin: 30px 10px 0;
                        }
                        .ribbon:before{
                            content: "";
                            background: linear-gradient(to top right,var(--color2) 49%, transparent 50%);
                            width: 15px;
                            height: 15px;
                            position: absolute;
                            top: -15px;
                            right: 10px;
                        }
                        .ribbon h3{
                            background: var(--color1);
                            font-size: 19px;
                            font-weight: 500;
                            text-transform: capitalize;
                            position: relative;
                            padding: 40px 15px;
                            display: inline-block;
                            clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
                            position: absolute;
                            top: 0;
                            right: 25px;
                            margin: -15px 0 0;
                        }
                        .ribbon.red{ --color1: #ef5777; }
                        .ribbon.red:before{ --color2:#f53b57; }
                        .ribbon.purple{ --color1:#B33771; }
                        .ribbon.purple:before{ --color2:#6D214F; }
                        .ribbon.blue{ --color1:#25CCF7; }
                        .ribbon.blue:before{ --color2:#1B9CFC; }
                        @media screen and (max-width:990px){ 
                            .ribbon{ margin-bottom: 50px; } 
                        }
                        @media screen and (max-width:990px){ 
                            .ribbon{ margin-bottom: 50px; } 
                        }
                    
License Terms