JSFiddle - React, Tailwind, and code Playground

by beebul

HTML

<ul>
    <div id="talkbubble">
        <li><span class="bubbleText">menu item</span></li>
    </div>
    <div id="talkbubble">
        <span class="bubbleText">another menu item</span>
    </div>
</ul>

CSS

body { background: grey; }

#talkbubble 
{ 
    width: 300px;
    height: 80px;
    background: white;
    position: relative;
    -moz-border-radius:10px 0px 0px 10px;
    -webkit-border-radius:0 10px 10px 0;
    border-radius:10px 0px 0px 10px;
    margin-left:50px;
    margin-top: 1em;
}

#talkbubble:after
{ 
    content:"";
    position: absolute;
    left: 100%;
    width: 0;
    height: 0; 
    border-top: 40px solid transparent;
    border-left: 26px solid white; 
    border-bottom: 40px solid transparent;
   -moz-border-radius:0px 10px 10px 0px;
    -webkit-border-radius:0px 10px 10px 0px;
    border-radius:0px 20px 20px 0px;
}

.bubbleText {
    color: grey;
    font-family: arial; 
    font-size: 2em;
    padding-left: .5em;
    position: absolute;
    padding-top: .5em;
}