I am trying to make a corner ribbon in a div and its going everywhere I want it to look neat and nice it goes over the div and does not sit well.
/* The ribbons */
.corner-ribbon {
width: 100px;
background: #e43;
position: absolute;
top: 25px;
left: -50px;
text-align: center;
line-height: 50px;
letter-spacing: 1px;
color: #f0f0f0;
transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
overflow: hidden;
}
.corner-ribbon.shadow {
box-shadow: 0 0 3px rgba(0, 0, 0, .3);
}
/* Different positions */
.corner-ribbon.top-right {
/* top: 18px; */
right: -4px;
left: auto;
transform: rotate(45deg);
-webkit-transform: rotate(46deg);
overflow: hidden;
}
.corner-ribbon.blue {
background: #39d;
}
<div class="large-4 columns">
<div class="corner-ribbon top-right sticky blue">Hello</div>
</div>
Can someone tell me how I can put a corner ribbon in the top right looking smart and nice which can handle around 3 words.