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

              
                <!-- https://lexingtonthemes.com/info/alfred/ -->
<header class="bb b--moon-gray">
  <div class="mw7 center pv2 ph3 flex justify-between items-center">
    <h1 class="f3 serif">Alfred</h1>
    <nav>
      <ul class="list pl0 flex">
        <li><a class="f5 link near-black hover-blue mh2" href="#">About</a></li>
        <li><a class="f5 link near-black hover-blue mh2" href="#">Blog</a></li>
        <li><a class="f5 link near-black hover-blue mh2" href="#">Contact</a></li>
      </ul>
    </nav>
  </div>
</header>
<main class="mw7 center ph3">
  <p class="mw6 pt5 mv2 f1 fw6">
    Generic Business Solutions For Everyone
  </p>
  <p class="mw6 pr6 f4 silver">
    This is the subtitle. Some kind of longer tagline which makes everyone interested in the product.
  </p>
  <p>
    <button class="fw6 ph3 pv2 bn br4 bg-blue near-white shadow-hover">Buy Now</button>
    <button class="fw6 ph3 pv2 br4 hover-blue">Read More</button>
  </p>
  <div class="flex-ns mv4">
    <div class="ph3">
      <h3 class="mb1 ttu fw6 courier">Amazing Feature</h3>
      <p class="ma0 fw2 silver">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae, accusamus deserunt soluta minima reprehenderit rerum ipsa quia quas reiciendis fuga quo tempore laborum porro architecto perspiciatis quasi rem repudiandae facilis.</p>
    </div>
    <div class="ph3">
      <h3 class="mb1 ttu fw6 courier">Amazing Feature</h3>
      <p class="ma0 fw2 silver">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae, accusamus deserunt soluta minima reprehenderit rerum ipsa quia quas reiciendis fuga quo tempore laborum porro architecto perspiciatis quasi rem repudiandae facilis.</p>
    </div>
    <div class="ph3">
      <h3 class="mb1 ttu fw6 courier">Amazing Feature</h3>
      <p class="ma0 fw2 silver">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae, accusamus deserunt soluta minima reprehenderit rerum ipsa quia quas reiciendis fuga quo tempore laborum porro architecto perspiciatis quasi rem repudiandae facilis.</p>
    </div>
  </div>
</main>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console