Pen Settings



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


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


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.


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.


                <div class="main-grid">

  <header class="section-intro">
    <h1>Lorem ipsum dolor sit.</h1>
    <p>Lorem ipsum dolor sit amet consectetur. Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque fuga earum explicabo enim provident neque, voluptate nisi sapiente modi ipsam.</p>

  <h2 class="section-title">A great product!</h2>
  <article class="card flow">
    <h3>Quidem, vitae saepe!</h3>
    <p>Quibusdam sapiente eaque doloremque aliquam, asperiores eum voluptatum cum hic!</p>
  <article class="card flow">
    <h3>Hic, officiis exercit ationem!</h3>
    <p>Animi, odio? Qui, doloremque dolore velit illo a eum nemo.</p>
  <article class="card flow">
    <h3>Eos, unde omnis!</h3>
    <p>Sint, est consequatur corrupti dignissimos repellendus reiciendis! Culpa, reiciendis ducimus?</p>

  <h2 class="section-title">Our prices</h2>
  <div class="pricing-card flow">
    <h3>Base plan</h3>
    <p class="price">$39</p>
    <p>Lorem, ipsum dolor.</p>
    <p>Possimus, illo quae!</p>
    <p>Officiis, quisquam error?</p>
    <p>Praesentium, ad quia?</p>
  <div class="pricing-card flow">
    <h3>Step it up</h3>
    <p class="price">$49</p>
    <p>Lorem, ipsum dolor.</p>
    <p>Culpa, eaque cumque? And this one is longer than the others</p>
    <p>Harum, facere praesentium.</p>
    <p>Voluptatum, temporibus vero?</p>
  <div class="pricing-card flow">
    <p class="price">$59</p>
    <p>Lorem, ipsum dolor.</p>
    <p>Quam, autem corrupti!</p>
    <p>Ipsa, dignissimos molestiae!</p>
    <p>Error, ipsum dolores!</p>


                .main-grid {

/* general styling */

body {
  font-size: 1.25rem;
  line-height: 1.6;
  padding-bottom: 10rem;

header {
  box-shadow: 0 0.5rem 1rem hsl(0 0% 0% / 0.1);
  margin-bottom: min(3rem, 5vh);

h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: hsl(222 83% 10%);

h1 {
  font-size: clamp(3rem, 5vw + 1rem, 5rem);

h2 {
  font-size: 3rem;

.flow > * {
  margin: 0;

.flow > :where(:not(:first-child)) {
  margin-top: 1rem;

.section-title {
  margin-top: 6rem;

.card {
  box-shadow: 0 0.25rem 0.75rem hsl(0 0% 0% / 0.1);
  padding: 1.5em;

.price {
  font-size: 2rem;