123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <main>
  
  <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quae aut, libero, saepe hic, provident cupiditate blanditiis distinctio similique veniam amet temporibus error asperiores aspernatur quos architecto aliquam. Minima, reiciendis pariatur.</p>
  
  <section class="full-width">
    <div class="full-width-inside">
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Non odit, labore nisi laborum doloribus quia praesentium officia quis, quibusdam accusamus quas hic quam consequuntur impedit! Provident unde aliquam blanditiis cumque?</p>
    </div>
  </section>
  
  <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quae aut, libero, saepe hic, provident cupiditate blanditiis distinctio similique veniam amet temporibus error asperiores aspernatur quos architecto aliquam. Minima, reiciendis pariatur.</p>
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Laborum ex minima dolorem enim sequi atque totam recusandae dolor! Natus distinctio alias sequi vel doloribus repudiandae, ea accusantium sapiente quidem reiciendis.</p>
  <p>Quas repudiandae ex voluptatum libero similique alias ipsa ullam, fugit deserunt unde aliquid dolor sapiente magni officia tempore quos aperiam officiis placeat. Quos sint rem enim culpa praesentium, debitis labore.</p>
  <p>Quos ipsa architecto corporis sunt dignissimos. Dolor maxime quasi voluptates itaque mollitia dolores ea iure minima sit ipsa rem, quidem dolorum at temporibus veritatis. Beatae iusto iure quaerat architecto porro.</p>
  <p>Officiis facilis deserunt reiciendis quos suscipit, accusantium alias excepturi eveniet expedita esse cumque, quis eaque explicabo quas! Accusantium cupiditate consequuntur laborum officiis obcaecati assumenda? Debitis nam impedit quaerat pariatur cum?</p>
  <p>Voluptas suscipit dolore non, cumque dolorum alias esse nam at dolorem qui aliquam maxime sint inventore repellendus assumenda quo accusantium. Repellat fugiat eos temporibus molestias dolor dicta, iste odit expedita?</p>
  <p>Delectus iste ipsum tempora consectetur blanditiis nesciunt! Mollitia eaque optio odit corporis blanditiis, autem ipsa dolorum cupiditate a. Facere quia tempore eligendi numquam aspernatur ad cum voluptatem, sit quos dolore.</p>
  <p>Explicabo modi consectetur, provident quod asperiores placeat ad deserunt quibusdam veniam eligendi natus architecto recusandae et nemo fugit itaque quae, maxime adipisci, in perferendis voluptas ex ipsum exercitationem? Hic, eos.</p>
  <p>Nostrum sapiente accusantium ea eaque officiis voluptatum odit. Fugiat incidunt nulla accusantium consequuntur soluta quisquam dolores tenetur ipsa velit quis perspiciatis vitae, veritatis aut. Tempore tenetur iusto ratione molestiae in!</p>
  <p>Non tenetur eos maiores voluptatibus necessitatibus repudiandae delectus accusamus, inventore pariatur dolore aspernatur obcaecati vero voluptatem quo ab sint corporis eveniet nobis mollitia architecto asperiores excepturi. Exercitationem labore error vel.</p>
  <p>Laudantium, ea aliquid molestias, veniam asperiores rerum excepturi eveniet pariatur et quia saepe porro praesentium qui, temporibus rem veritatis? Laboriosam numquam sit animi repellendus quod eos? Inventore placeat perspiciatis ad.</p>
  
</main>
            
          
!
            
              body {
  --contentWidth: 400px;
  padding: 1rem;
  scrollbar-width: 20px;
}
body::-webkit-scrollbar {
  width: 20px;
}
body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
 
body::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 1px solid slategrey;
}
.full-width {
  background: lightcoral;
  width: calc(100vw - 20px);
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 1rem 0;
}
main, .full-width-inside {
  max-width: var(--contentWidth);
  margin: 0 auto;
}
.full-width-inside {
  padding-left: 1rem;
  padding-right: 1rem;
}



            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console