I'm trying to create a curved triangle to be put next to a 'chat message box'.
See this example:
As you can see in between the 'E' and the actual message box there is a little 'triangle' but its shape isnt made of a straigt line, instead it's a little bit curved.
On top of that, I would like to add a box-shadow to my triangle.
Here's the code that I have tried:
width: 0px;
height: 0px;
border-top: 32px solid transparent;
border-bottom: 0px solid transparent;
border-right: 22px solid white;
position: absolute;
left: -10px;
bottom: 0;
box-shadow: 0 2px 6px rgba(0,0,0,.9);
And it gives me this result: (I have purposefully added a super dark box-shadow so that it easier to understand my problem.)
So, to recap, what I'd like to achieve:
- A triangle that has one of its line curved as in the very first picture
- a box shadow around that triangle, that 'fits' with the other box shadow of the other element.
Thanks !