css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              h2 Lorem ipsum dolor sit amet, consectetur adipiscing elit.

p Pellentesque eu dignissim tellus. Curabitur ut finibus justo. Morbi nec aliquam est. Proin hendrerit enim dolor. Aliquam sed enim facilisis, egestas ante eget, eleifend nibh. Mauris ullamcorper, sapien vitae porttitor malesuada, ex enim commodo metus, sollicitudin lobortis lacus magna quis metus. Maecenas nec urna dignissim, commodo ex et, egestas erat. Etiam pharetra purus hendrerit feugiat pellentesque. Maecenas non facilisis quam. Mauris quis orci consectetur, imperdiet sapien non, rhoncus augue. Vivamus sed vulputate nunc, at semper ex. Nunc et tempor quam, ac cursus quam. Maecenas elementum hendrerit ligula. Nulla facilisi. Proin sit amet ligula id massa gravida lacinia eget sed dui. Integer vitae euismod enim.

p Praesent id orci erat. Nullam ac nisl convallis, semper urna nec, posuere nunc. Aliquam dictum efficitur eros, sit amet pretium turpis imperdiet eget. Vivamus congue justo ut faucibus rhoncus. Cras lobortis diam vel felis suscipit, id egestas ligula consequat. Suspendisse maximus scelerisque eros non finibus. Donec ac luctus sapien. Aenean a tincidunt elit, sed vehicula magna. Integer ante leo, pulvinar ac lorem ut, volutpat cursus elit. In gravida malesuada commodo.

p Aliquam nulla velit, hendrerit et viverra nec, fermentum sed est. Nulla facilisi. Suspendisse potenti. Nunc id metus eget augue porta ultricies. Duis ut accumsan erat. Morbi sed mauris a urna mollis faucibus non molestie orci. Nunc suscipit nec felis nec euismod.

p Sed justo leo, elementum non lacinia sit amet, molestie nec diam. Duis id magna pretium, molestie est ut, semper nulla. Maecenas finibus nulla purus, ac convallis leo luctus nec. Aenean eu mollis nisl, ac scelerisque sapien. In dignissim sem neque, et pellentesque nisi gravida et. In faucibus sapien quis metus aliquet ultrices. Proin facilisis consequat eleifend. Phasellus quam augue, dignissim eget egestas ut, suscipit a urna. Aliquam eget efficitur risus. Nullam congue in lorem a aliquet. Morbi rutrum finibus odio, vel sagittis libero facilisis vitae. Nam in laoreet odio. Donec sagittis auctor sem a fringilla.

p Nullam bibendum ex quis facilisis pellentesque. Phasellus mollis nulla nibh, ut rhoncus augue aliquam commodo. Nulla aliquam iaculis ante, ac dignissim felis imperdiet sit amet. Praesent non sodales diam. Vestibulum rhoncus, est et mattis volutpat, arcu urna viverra diam, consectetur dapibus erat nulla nec quam. Nullam eu lobortis lacus. Praesent sit amet magna tincidunt, sodales quam at, rutrum lorem.
            
          
!
            
              html {
  font-size: 62.5%;
}

body {
  max-width: 80rem;
  padding: 4.8rem 2.4rem;
  margin: 0 auto;
  font-size: 1.6rem;
  line-height: 1.5;
  font-family: sans-serif;
}

h2 {
  font-size: 2.4rem;
  font-weight: 500;
}

p {
  margin: 1.6rem 0;
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #FFF;
        color: #000;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #000;
        color: #FFF;
    }
}
            
          
!
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.
Loading ..................

Console