Make the right side of a div as an arrow

后端 未结 7 600
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 01:23

I have a simple div on a page:

Some Text

Is it possible, with CSS, to make it finish as an arrow. Something like:

相关标签:
7条回答
  • 2020-12-03 01:53

    I know above answers are accurate, but give this a try also

    You can use clip-path CSS

    clip-path: polygon(0 0, 100% 0, 100% 68%, 46% 100%, 0 68%);
    

    Or you can also generate it from here: https://bennettfeely.com/clippy/

    0 讨论(0)
提交回复
热议问题