Pen Settings



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


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.


  <li><a href="#">First item</a></li>
  <li><a href="#">Other item</a></li>
  <li><a href="#">and...</a></li>
  <li><a href="#">Last item!</a></li>


$height: 100;      // default: height of menu
$skew-angle: 20;   // default: angle

@import "compass"; // import compass for easier math functions:

$a: tan( $skew-angle * 1deg ) * $height;  // calculate opposite leg of triangle

body {
  margin: 0;
  padding: 0;
  font: normal small-caps normal 18px/150% Arial, Helvetica, sans-serif;

ul {
  margin: 0;
  padding: 0;
  list-style: none;   
  width: 100%;
  display: flex;
  overflow: hidden; // prevent vertical scrollbar
  li {
    flex: 1 auto; // distribute children to container size
    -webkit-transform: skew( $skew-angle * -1deg );
    overflow: hidden; // hide overlapping links with negative margins
    margin: auto;
    margin-left: -1px; // compensate rendering issues
    &:first-child {
      margin-left: $a / 2 * -1px; // negative margins to compensate cut off triangle
      padding-left: $a / 4 * 1px; // padding to keep text visible with extreme skew angles
    &:last-child {
      margin-right: $a / 2 * -1px;
      padding-right: $a / 4 * 1px;
    a {
      display: block;
      -webkit-transform: skew( $skew-angle * 1deg );
      margin: 0  $skew-angle / 2 * -1em; // #tbd tweak with $a
      padding: 0  $skew-angle / 2 * 1em; // #tbd tweak with $a
      line-height: $height * 1px;
      background: red;
      color: #FFF;
      text-align: center;
      text-decoration: none;
      &:hover {
        color: red;
        background-color: #e2e2e2;