I am trying to create a chat bubble using CSS with rounded corners and a bottom-right arrow. However, I am having trouble getting the arrow to display correctly.
https://i.stack.imgur.com/gVXOV.png
The CSS styling for the chat bubble is as follows:
.right-bubble {
margin-top: 12px;
padding: 5px 8px;
font-size: 13px;
position: relative;
background: #1e87f0;
border-radius: 5px;
text-align: right;
color:white;
box-shadow: 0 5px 15px rgba(0,0,0,.08);
z-index: 1;
}
.right-bubble:after {
width: 10px;
height: 45px;
bottom: 0;
background: #1e87f0;
right: -4px;
clip-path: polygon(0 70%, 0% 100%, 100% 100%);
}
This is how the HTML markup for the chat bubble looks like:
<div class="right-bubble">
<p>Welcome, adfdf adsfsdf adsfsdffa adsfdfadsf asdfsdf Please
wait. Our agent will join you shortly.asdfadsf adfd asdff asdf
fasdfdsf
</p>
</div>
At the moment, only the rounded corner box is displaying and the bottom right arrow is missing. Any suggestions on how to fix this issue?