If you are unable to understand, then please open the image. I want to draw a black vertical line at left border of a div
I apologise for my useless paint ability. enter image description here What must I do to make this in css?.
Thanks.
If you are unable to understand, then please open the image. I want to draw a black vertical line at left border of a div
I apologise for my useless paint ability. enter image description here What must I do to make this in css?.
Thanks.
Please check out this link https://stackoverflow.com/a/24207393/10293708, has a similar question. But all in all, I would also suggest you to do try out doing something using css first and maybe you could add a jsfiddle link to what you have achieved so far, so that others can help better.
Your HTML Code
<div class="badge">
<p class="text">New</p>
</div>
CSS for background
.badge {
clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 65%, 0 100%);
background-color : red;
height: 100px;
width:50px
}
.text {
text-align: center;
padding-top: 35px;
}
You can use bennettfeely for diffrent css shapes that will generate a clip-path of the shape