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

              
                <main class="content">
  <h1>Some Heading</h1>
  <p> Minions ipsum tatata bala tu belloo! Me want bananaaa! Ti aamoo! potatoooo bananaaaa tulaliloo hana dul sae chasy. Chasy tatata bala tu hahaha baboiii jeje baboiii. Aaaaaah underweaaar hana dul sae tatata bala tu wiiiii me want bananaaa! Tulaliloo jeje po kass. Bee do bee do bee do poulet tikka masala tulaliloo hana dul sae poulet tikka masala poopayee poulet tikka masala hana dul sae me want bananaaa! Chasy potatoooo bee do bee do bee do wiiiii tank yuuu! Bananaaaa la bodaaa butt potatoooo bananaaaa. Tatata bala tu potatoooo hana dul sae uuuhhh tulaliloo tatata bala tu. Tatata bala tu baboiii me want bananaaa! Gelatooo belloo! Tank yuuu! Jeje potatoooo uuuhhh baboiii bananaaaa belloo!
</p>
 <div id="imagecontainer" class="content--fullwidth"> <img alt="cute meerkat" src="https://images.unsplash.com/photo-1511884642898-4c92249e20b6?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80" /> </div>
 <p>
Minions ipsum tatata bala tu belloo! Me want bananaaa! Ti aamoo! potatoooo bananaaaa tulaliloo hana dul sae chasy. Chasy tatata bala tu hahaha baboiii jeje baboiii. Aaaaaah underweaaar hana dul sae tatata bala tu wiiiii me want bananaaa! Tulaliloo jeje po kass. Bee do bee do bee do poulet tikka masala tulaliloo hana dul sae poulet tikka masala poopayee poulet tikka masala hana dul sae me want bananaaa! Chasy potatoooo bee do bee do bee do wiiiii tank yuuu! Bananaaaa la bodaaa butt potatoooo bananaaaa. Tatata bala tu potatoooo hana dul sae uuuhhh tulaliloo tatata bala tu. Tatata bala tu baboiii me want bananaaa! Gelatooo belloo! Tank yuuu! Jeje potatoooo uuuhhh baboiii bananaaaa belloo!
</p>
  
</main>
              
            
!

CSS

              
                 :root { font-family: 'Inter', sans-serif; }
  @supports (font-variation-settings: normal) {
    :root { font-family: 'Inter var experimental', sans-serif; 
    }
  }

img {
  width: 100%;
}
#imagecontainer {
  height: 35rem;
  object-fit: cover;
  overflow: hidden;
  object-position: 50% 50%;
}

p {
  font-size: clamp(1.13rem, 1.05rem - -0.37vw, 1.38rem);
  line-height: calc(1ex / 0.32);
  -webkit-hyphens: auto;
   -ms-hyphens: auto;
   -moz-hyphens: auto;
   hyphens: auto;
    max-width:70ch;
}

.content {
     display: grid;
     grid-template-columns: [fullwidth start] minmax(1em, 1fr) 
      [wider-start]minmax(0, 0.5fr) 
      [wide-start] minmax(0, 0.25fr)
      [main-start] minmax(0, 62ch) [main-end] 
      minmax(0, 0.25fr) [wide-end] 
      minmax(0, 0.5fr) [wider-end] 
      minmax(1em, 1fr) [fullwidth-end];
  }


 .content > * {
    grid-column: main;
  }

  .content--wide {
    grid-column: wide;
  }
  .content--wider {
    grid-column: wider;
  }
  .content--fullwidth {
     grid-column: fullwidth;
  }
  .content-aside--left {
      grid-column: 1 / 4;
  }
              
            
!

JS

              
                
              
            
!
999px

Console