Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <ul role="navigation">
  <li>Home</li>
  <li>Notifications</li>
  <li>Messages</li>
  <li class="twitter">
    <?xml version="1.0" encoding="UTF-8"?>
<svg width="612px" height="498px" viewBox="0 0 612 498" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <title>Twitter Logo</title>
    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="twitter" fill="#010002">
            <path d="M612,59.258 C589.475,69.239 565.306,76.008 539.912,79.03 C565.841,63.503 585.689,38.875 595.096,9.619 C570.774,23.998 543.927,34.439 515.321,40.099 C492.414,15.662 459.831,0.441 423.691,0.441 C354.357,0.441 298.14,56.658 298.14,125.954 C298.14,135.782 299.249,145.381 301.391,154.56 C197.065,149.32 104.556,99.337 42.641,23.386 C31.818,41.896 25.661,63.464 25.661,86.487 C25.661,130.046 47.842,168.48 81.496,190.966 C60.921,190.278 41.57,184.618 24.629,175.21 L24.629,176.778 C24.629,237.584 67.92,288.332 125.322,299.882 C114.805,302.712 103.715,304.28 92.242,304.28 C84.135,304.28 76.295,303.477 68.608,301.947 C84.593,351.854 130.944,388.146 185.861,389.141 C142.914,422.795 88.762,442.796 29.945,442.796 C19.811,442.796 9.829,442.184 0.001,441.075 C55.568,476.756 121.537,497.56 192.439,497.56 C423.387,497.56 549.627,306.269 549.627,140.372 L549.206,124.119 C573.872,106.526 595.211,84.422 612,59.258 L612,59.258 Z" id="Shape"></path>
        </g>
    </g>
</svg>
</li>
  <li>
    <form><input placeholder="search twitter" /></form>
  </li>
  <li><button>tweet</button></li>
</ul>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Merriweather+Sans:300,800');

body {
  font-size: 20px;
  font-family: 'Merriweather Sans', sans-serif;
}

ul {
  display: flex;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

ul li {
  margin: 0 10px;
}

.twitter {
  margin-left: auto;
  margin-right: auto;
}

.twitter svg {
  width: 30px;
  height: 30px;
}

.twitter svg g {
  fill: #1da1f2;
}
              
            
!

JS

              
                
              
            
!
999px

Console