Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74765

How to make a transparent bubble chat with triangle?

$
0
0

I need to do a bubble chat all transparent, except by the borders somtehing like this:

bubble chat example

I have found an excellent design to start with:

https://codepen.io/cool_lazyboy/pen/BWxggN

The problem is that the triangle that points of the bubble chat is made as usual by collapsing the width and expanding the borders, and it's made by two triangles, one has been colored with green and another with white:

The one colorized white:

width: 0px;
height: 0px;
position: absolute;
border-left: 7px solid #fff;
border-right: 7px solid transparent;
border-top: 7px solid #fff;
border-bottom: 7px solid transparent;

And the other other triangle that is behind the last one an is colorized with green:

  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid #00bfb6;
  border-right: 10px solid transparent;
  border-top: 10px solid #00bfb6;
  border-bottom: 10px solid transparent;
  right: -21px;
  top: 6px;

And it looks something like this:

bubble chat example2

so i'm unable to make it transparent, because if I set it transparent, the triangle on the top the triangle that is under and is green will show up

bubble chat example3

Any ideas how can I fix this?


Viewing all articles
Browse latest Browse all 74765

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>