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.

            
              <head>
  <link href='https://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
</head>
<body>
  <div class="quotes">
    <blockquote>
      <p>I've had a lot of worries in my life, most of which never happened.</p>
      <footer>
        - Mark Twain
      </footer>
    </blockquote>
    <blockquote>
      <p>May you live in interesting times</p>
      <footer>
        - Ancient Chinese Curse
      </footer>
    </blockquote>
    <blockquote>
      <p>Here's to alcohol: the cause of, and solution to, all of life's problems.</p>
      <footer>
        - Homer Simpson
      </footer>
  </div>
</body>
            
          
!
            
              @import "bourbon";
@import "neat"; 

$small: new-breakpoint(max-width 960px);

.quotes {
  @include display(flex);
  @include media($small) {
    @include flex-direction(column);
  }
}

body {
  font-size: 12px;
  font-family: "Arvo", sans-serif;
}

blockquote {
  
  // control the quotation appearance with these vars
  $quote-font-size: 1.4em;
  border:1px solid #DDD;
  padding: 0.5em 1em 0.5em 1em;
  border-radius: 0.2em;
  
  position: relative;
  @include media($small) {
    @include flex-basis(auto);
  }
  @include flex(1);
  font-size: $quote-font-size;
  
  overflow: hidden;
  
  p {
    
    font-size: 1.5em;
    text-indent: 0em;
    margin: 0em 0 0.25em 0;
    line-height: 1.25em;
    z-index: 1;
    &::before {
      font-family: Georgia;
      content: "\201C";
      font-size: 5em;
      position: relative;
      left: 0em;
      top: 0.45em;
      color: #999;
    }
    &::after {
      font-family: Georgia;
      content: "\201D";
      font-size: 16em;
      position: absolute;
      right: -0.085em;
      bottom: -0.25em;
      color: #DDD;
      z-index: -1;
    }
  }
  footer {
    font-size: 1em;
    line-height: 2.5em;
    text-decoration: italic;
    text-indent: 1em;
  }
  
}
            
          
!
999px
Loading ..................

Console