Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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>
<h1>
  <em><strong>The Bulowska Headline</strong></em>
</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Culpa obcaecati ad eius exercitationem a nulla quas numquam sint. Eligendi commodi harum modi ratione repellat officiis sit non neque porro excepturi!</p>
<p>Explicabo sunt architecto dignissimos eligendi magnam suscipit commodi ipsa adipisci eius nihil incidunt aut vel rerum deserunt repudiandae nulla quam nostrum voluptatem harum accusamus rem nemo quis aliquid at laboriosam.</p>
<p>Numquam libero dolorem id voluptate iusto sed sapiente iure praesentium accusamus sunt dolore tenetur harum. Totam inventore architecto vitae ratione itaque modi expedita impedit doloremque voluptatum quisquam ullam id deleniti.</p>
<p>Obcaecati sint expedita at ipsa laudantium porro deleniti reprehenderit illo ut ipsum. Autem quos nihil veritatis iste neque sint voluptatibus aliquid optio consectetur quaerat minus maiores minima consequuntur sapiente mollitia!</p>
<h1>
  <strong><em>The Bulowska Headline</em></strong>
</h1>
<h1>
  Regular Headline
</h1>
   
</article>
              
            
!

CSS

              
                /* apply a natural box layout model to all elements */
*, *:before, *:after {
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

@import url(https://fonts.googleapis.com/css?family=Pinyon+Script);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,700);

html {
  font-family: Raleway, sans-serif;
  padding: 6%;
  line-height: 1.6;
}

article {
  text-align: justify;
  max-width: 960px;
  margin: auto;
}

h1 {
  text-transform: uppercase;
  letter-spacing: .1em;
  
  &>em, &>strong {
    font-size: 0;
    text-align: center;
    padding: 0 1em;
    position: relative;
    display: block;

    &:before, &:after { // this is the stroke
      font-size: 1rem;
      content: '';
      display: inline-block;
      vertical-align: middle;
      width: 15%;
      max-width: 7em; // limit the width in really wide containers
      height: 3px;
      background: #000;
      border-radius: 50%;
      position: relative;
      top: -.3em; // adjust this value depending on font used
    }
    
    &>strong, &>em {
      font: normal 3.5rem/1 "Pinyon Script", serif;
      font-style: normal;
      text-transform: none;
      letter-spacing: 0;
      max-width: 70%;
      display: inline-block;
      vertical-align: middle;
      padding: 0 .2em 0;
    }
  }
  
}

              
            
!

JS

              
                // My co-worker created this style of headline that begins and ends with a stroked flourish. I wanted to create this effect with as little extra markup possible for use with Shopify's WYSIWYG (meaning: no custom HTML for non-techies) and work responsively. Unfortunately it doesn't work that great when the headline is broken into multiple lines on small screen devices.
              
            
!
999px

Console