﻿.snippet {
    width: 250px;
}

    .snippet img {
        width: 150px;
        height: auto;
        float: left;
        margin: 5px;
        border: 2px solid;
        border-color: darkgrey;
    }

.bubble {
    flex: 1 1 auto;
    clear: both;
}
    /* clear the floats here on parent */
    .bubble p {
        border-radius: 5px;
        padding: 8px;
        margin: 8px 12px;
        max-width: 80%;
        position: relative;
        transition: background-color 0.5s;
    }

.left p {
    background-color: PowderBlue;
    color: Black;
    float: left;
}

.right p {
    background-color: WhiteSmoke;
    color: Black;
    float: right;
}

.left p::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: -8px;
    top: 8px;
    border-top: 4px solid transparent;
    border-right: 8px solid PowderBlue;
    border-bottom: 4px solid transparent;
}

.right p::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    right: -8px;
    bottom: 8px;
    border-top: 4px solid transparent;
    border-left: 8px solid WhiteSmoke;
    border-bottom: 4px solid transparent;
}

.imgcntnr div {
    position: relative;
    width: 100%;
    background-color: Grey;
}
