JSFiddle - React, Tailwind, and code Playground

by GCyrillus

HTML

<div class="chat">
    <div id="msg17" class="bubbledLeft">Here is my message</div>
</div>

CSS

body{
    background-color: rgb(238, 238, 238);
}

.bubbledLeft{
    margin-top: 3px;
    padding: 3px 5px 3px 5px;
    max-width: 80%;
    clear: both;
    float: left;
    margin-right: auto;
    position: relative; 
    z-index:1;
    margin-right: auto;
    padding: 4px 10px 4px 15px; /*position within the border*/
        background:url(http://www.rwe-uk.com/static/ichat_with_css3/speech_bubble_left_2.png) center / 300% 150%;
    background-clip:content-box;
}

.bubbledLeft:before {
    z-index: -1;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    content: "";
    border-width: 8px 10px 8px 17px; 
    border-image: url(http://www.rwe-uk.com/static/ichat_with_css3/speech_bubble_left_2.png) 8 10 8 17 stretch stretch;
    -webkit-border-image: url(http://www.rwe-uk.com/static/ichat_with_css3/speech_bubble_left_2.png) 8 10 8 17 stretch stretch;
    -moz-border-image: url(http://www.rwe-uk.com/static/ichat_with_css3/speech_bubble_left_2.png) 8 10 8 17 stretch stretch;
    -o-border-image: url(http://www.rwe-uk.com/static/ichat_with_css3/speech_bubble_left_2.png) 8 10 8 17 stretch stretch;
    border-style: solid;

}