Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <ul class="container list-unstyled chat">
    <li class="own">
        <img src="https://www.w3schools.com/bootstrap4/img_avatar3.png" alt="...">
        <div>
            <span>Doggo</span>
            <p>Long woofer borkf long woofer wow very biscit ruff, long bois fat boi length boy.
            I am bekom fat long woofer snoot puggo, smol long woofer.</p>
            <span>09:11 09.08.2020</span>
        </div>
    </li>
    <li class="own">
        <img src="https://www.w3schools.com/bootstrap4/img_avatar3.png" alt="...">
        <div>
            <span>Doggo</span>
            <p>Long woofer borkf long woofer wow very biscit ruff, long bois fat boi length boy.</p>
            <span>10:35 09.08.2020</span>
        </div>
    </li>
    <li>
        <img src="https://www.w3schools.com/bootstrap4/img_avatar3.png" alt="...">
        <div>
            <span>Borker</span>
            <p>I am bekom fat long woofer snoot puggo, smol long woofer.</p>
            <span>11:21 09.08.2020</span>
        </div>
    </li>
    <li>
        <img src="https://www.w3schools.com/bootstrap4/img_avatar3.png" alt="...">
        <div>
            <span>Borker</span>
            <p>Long woofer borkf long woofer wow very biscit ruff, long bois fat boi length boy.
            I am bekom fat long woofer snoot puggo, smol long woofer.</p>
            <span>11:23 09.08.2020</span>
        </div>
    </li>
    <li class="own">
        <img src="https://www.w3schools.com/bootstrap4/img_avatar3.png" alt="...">
        <div>
            <span>Doggo</span>
            <p>Long woofer borkf long woofer wow very biscit ruff, long bois fat boi length boy.</p>
            <span>12:04 09.08.2020</span>
        </div>
    </li>
    <li>
        <img src="https://www.w3schools.com/bootstrap4/img_avatar3.png" alt="...">
        <div>
            <span>Borker</span>
            <p>Long woofer borkf long woofer wow very biscit ruff, long bois fat boi length boy.
            I am bekom fat long woofer snoot puggo, smol long woofer.</p>
            <span>12:31 09.08.2020</span>
        </div>
    </li>
</ul>
              
            
!

CSS

              
                .chat
  p
    margin-bottom: 0
  img
    height: 4rem
    width: 4rem
    margin-right: 1rem
    border-radius: 50% !important
  li
    display: -ms-flexbox !important
    display: flex !important
    margin-bottom: 2rem
    position: relative
    text-align: left
    width: 50%
    margin-left: 0
    &:not(.own) span:first-of-type
      font-size: 1.2rem
      font-weight: bolder
      &:after
        content: "\a"
        white-space: pre
    & span:last-of-type
      position: absolute
      bottom: -1rem
      right: 0
      font-size: 0.6rem
    &:not(.own):after
      content: ""
      position: absolute
      margin-top: -0.4rem
      margin-left: -5px
      border-left: 12px solid transparent
      border-right: 12px solid transparent
      border-bottom: 12px solid #82ccdd
      transform: rotate(45deg)
      left: 4.5rem
      top: 2rem
    div
      border-radius: 5%
      background-color: #82ccdd
      padding: 0.2rem 0.6rem 0.2rem 0.2rem
      min-width: 86%
  .own
    margin-left: 50%
    span:first-of-type
      display: none
    &:after
      content: ""
      position: absolute
      margin-top: -6px
      margin-left: -5px
      border-left: 12px solid transparent
      border-right: 12px solid transparent
      border-bottom: 12px solid #82ccdd
      transform: rotate(-45deg)
      right: -15px
      top: 10px
    img
      display: none
              
            
!

JS

              
                
              
            
!
999px

Console