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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


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.

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 id="wrap">
  <h1>Gradient borders</h1>
  <div class="box-wrap">
    <div class="box">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae necessitatibus quos esse nisi sed explicabo unde omnis excepturi ratione hic eligendi iusto voluptatem voluptate! Sit a nostrum ut expedita alias quaerat ea ratione animi harum perspiciatis dolorem deleniti aliquam velit vel non obcaecati ducimus. Nisi excepturi debitis dolorem natus veritatis labore eligendi architecto quasi laudantium ipsam cum doloribus veniam sint error aliquam voluptate alias reiciendis neque nam quo iure dolorum dolores earum eveniet voluptatum. Veniam quas ipsum molestiae officia sed necessitatibus ad numquam vitae aperiam facere quibusdam minus nostrum maxime error accusantium cum nulla illo quis ipsa dolor magni nobis!</div>


                $color1: #09f;
$color2: #6c3;
$color3: #c33;

  padding: 1rem;
  background-color: #fff;
  text-align: left;

  display: inline-block;
  width: 70%;
  padding: 5px;
  background-image: -webkit-linear-gradient(left, $color1, $color2, $color3, $color2, $color1);
  background-image: -moz-linear-gradient(left, $color1, $color2, $color3, $color2, $color1);
  background-image: -ms-linear-gradient(left, $color1, $color2, $color3, $color2, $color1);
  background-image: linear-gradient(left, $color1, $color2, $color3, $color2, $color1);
  border: 1px solid #666;
  box-shadow: 0 0 5px #333;

/* styling */
 html {
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, #fff 0%, #aaa 100%) no-repeat;
	overflow-x: hidden;
	overflow-y: hidden;

body {
	text-align: center;
	display: table;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: hidden;

#wrap {
	box-sizing: border-box;
	display: table-cell;
	vertical-align: middle;


                // based on a very old website mock I made back in 2010