cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.

              <h6><em>Today</em> 9:23 AM</h6>
<ol class="chat">
  <li class="them">
    <blockquote>Yo dude!</blockquote><br>
    <blockquote>What's going on?!</blockquote>
  <li class="me">
    <blockquote>Not much bro!</blockquote>
  <li class="them">
    <blockquote>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc at molestie ipsum. Vivamus auctor metus et faucibus facilisis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Pellentesque euismod sed enim a cursus. Pellentesque eget scelerisque augue, in porta mauris. </blockquote>
  <li class="me">
    <blockquote>Are you okay?!</blockquote>
  <li class="typing">
    <blockquote>&bull; &bull; &bull;</blockquote>
              @import url(https://fonts.googleapis.com/css?family=Open+Sans:400+700);

.test {
  border-width: 0 10px;
  border-color: black;
  border-style: solid;
  height: 50px;
  border-radius: 10px/50%;

body { 
  font-family: "Open Sans", sanserif;
  margin: 2em;

.chat blockquote {
  line-height: 1.7;
  max-width: 75%;
  margin-bottom: 0.5ex;
  display: inline-block;
  padding: 0.5ex 1em;
  border-radius: 1.5ex/1em;
  position: relative;
  box-shadow: 0 15px 1px -12px rgba(0,0,0,0.05);

.chat .them, .chat .me { margin-bottom: 1ex; }
.chat .them { text-align: left; }
.chat .me { text-align: right; }

blockquote:last-child::before {
  position: absolute;
  z-index: -999;
  border: 1ex solid transparent;
  bottom: 0;
  border-radius: 1em/1ex;  

.chat .them blockquote { background-color: #ccc; }
.chat .them blockquote:last-child::before {
  border-bottom-color: #ccc;
  border-right-color: #ccc;
  left: -0.8ex;
  content: "";

.chat .typing blockquote { 
  background-color: #ccc;
  font-weight: bold;
  color: #666;
.chat .typing blockquote:last-child::before {
  border-color: #ccc;
  border-width: 0.6ex;
  border-radius: 0.6ex;
  left: -0.2ex;
  box-shadow: -1.1ex 0.3ex 0 -0.3ex #ccc;
  content: "";

.chat .me blockquote {
  background-color: #007AFF;
  background-image: linear-gradient(180deg,#007AFF,#1D62F0);
  color: white;

.chat .me blockquote:last-child::before {
  content: "";
  right: -0.8ex;
  border-bottom-color: #1D62F0;  
  border-left-color: #1D62F0;

h6 {
  font-size: .7em;
  text-align: center;
  margin: 1em 0;
  color: #ccc;

h6 em { font-weight: bold; }
Loading ..................