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

              
                <article class="middle-path">
  <main>
    <figure>


<div>
  <p>A pull quote is a typographical technique in which an excerpt or quote from an article is duplicated within the article using a different formatting style so that it jumps out at the reader.</p>

  <p data-pullquote="A pull quote is a purely visual technique, and therefore should not change the structure of the body.">Blatantly copying the excerpt of the pull quote into it&#8217;s own element is not the way to go. A pull quote is a purely visual technique, and therefore should not change the structure of the body. Next to that, a structural representation of the excerpt would be seen twice by people using feed readers or services like <a href="http://www.instapaper.com/">Instapaper</a>, as well as be re-read for people who use screen readers. So how can we best author this into our mark-up?</p>
</div>
      
    </figure>
    <figure>


      <pre><code class="language-markup">&lt;p data-pullquote=&quot;[quote]&quot;&gt;
  [content]
&lt;/p&gt;</code></pre>

      
    </figure>
  </main>
</article>
              
            
!

CSS

              
                [data-pullquote]::before {
  position: relative;
	top: 5px;
	float: right;
	width: 50%;
	margin: 0 0 1rem 1.5rem;
	font-size: 1.25rem;
	line-height: 1.4;
  hyphens: none;
	content: attr(data-pullquote);
}

              
            
!

JS

              
                /**
 * CSS-only pull-quotes.
 *
 * @link http://miekd.com/articles/pull-quotes-with-html5-and-css/
 */
              
            
!
999px

Console