Pen Settings

HTML

CSS

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

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

              
                <div class="link-container">
  <a class="link link-default" href="#">Default</a><br />
  <a class="link link-default-color" href="#">Default with color hover</a><br />
  <a class="link link-default-underline" href="#">Default with underline hover</a><br />
  <a class="link link-default-underline-color" href="#">Default with underline and color hover</a><br />
  
  <a class="link link-clean" href="#">Clean</a><br />
  <a class="link link-clean link-clean-color" href="#">Clean with color hover</a><br />
  <a class="link link-clean link-clean-underline" href="#">Clean with underline hover</a><br />
  <a class="link link-clean link-clean-underline-color" href="#">Clean with underline and color hover</a><br />
  
  <a class="link link-clean-border link-clean-border-bottom" href="#">Clean with border hover</a><br />
    <a class="link link-clean-border link-clean-dotted-border-bottom" href="#">Clean with dotted border hover</a><br />
  <a class="link link-clean-border link-clean-border-bottom-color" href="#">Clean with border and color hover</a><br />
  <a class="link link-clean-border link-clean-dotted-border-bottom-color" href="#">Clean with dotted border and color hover</a><br />
  
  <a class="link link-border" href="#">Bordered</a><br />
  <a class="link link-border link-border-color" href="#">Bordered with color hover</a><br />
  <a class="link link-border link-border-hover" href="#">Bordered with border hover</a><br />
  <a class="link link-border link-border-color-hover" href="#">Bordered with color and border hover</a><br />
  
  <a class="link link-border-dotted" href="#">Bordered dotted</a><br />
  <a class="link link-border-dotted link-border-dotted-color" href="#">Bordered dotted with color hover</a><br />
  <a class="link link-border-dotted link-border-dotted-hover" href="#">Bordered dotted with border hover</a><br />
  <a class="link link-border-dotted link-border-dotted-color-hover" href="#">Bordered dotted with color and border hover</a><br />
  
    <a class="link link-box-shadow" href="#">Box shadow</a><br />
  <a class="link link-box-shadow link-box-shadow-color" href="#">Box shadow with color hover</a><br />
  <a class="link link-box-shadow link-box-shadow-hover" href="#">Box shadow with shadow hover</a><br />
  <a class="link link-box-shadow link-box-shadow-color-hover" href="#">Box shadow color and shadow hover</a><br />
</div>
              
            
!

CSS

              
                @link-color: #047cea;
@link-hover-color: lighten(@link-color, 20%);

*,
*::before,
*::after {
  box-sizing: border-box;
}

.link-container {
  padding: 30px 40px;
}

.link {
  display: inline-block;
  margin: 0 0 30px;
  color: @link-color;
  font-size: 16px;
}

.link-default-underline {
  &:hover {
    text-decoration: none;
  }
}

.link-default-color {
  &:hover {
    color: @link-hover-color;
  }
}

.link-default-underline-color {
  &:hover {
    text-decoration: none;
    color: @link-hover-color;
  }
}

.link-clean {
  text-decoration: none;
}

.link-clean-border {
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
}

.link-border {
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid @link-color;
}

.link-border-dotted {
  &:extend(.link-border);
  border-bottom: 1px dotted @link-color;
}

.link-clean-underline {
  &:hover {
    text-decoration: underline;
  }
}

.link-clean-color {
  &:hover {
    color: @link-hover-color;
  }
}

.link-clean-underline-color {
  &:hover {
    text-decoration: underline;
    color: @link-hover-color;
  }
}

.link-clean-border-bottom {
  &:hover {
    border-bottom: 1px solid @link-color;
  }
}

.link-clean-dotted-border-bottom {
  &:hover {
    border-bottom: 1px dotted @link-color;
  }
}

.link-clean-border-bottom-color {
  &:hover {
    color: @link-hover-color;
    border-bottom: 1px solid @link-hover-color;
  }
}

.link-clean-dotted-border-bottom-color {
  &:hover {
    color: @link-hover-color;
    border-bottom: 1px dotted @link-hover-color;
  }
}

.link-border-color {
  &:hover {
    color: @link-hover-color;
    border-bottom: 1px solid @link-hover-color;
  }
}

.link-border-hover {
  &:hover {
    border-bottom: 1px solid transparent;
  }
}

.link-border-color-hover {
  &:hover {
    color: @link-hover-color;
    border-bottom: 1px solid transparent;
  }
}

.link-border-dotted-color {
  &:hover {
    color: @link-hover-color;
    border-bottom: 1px dotted @link-hover-color;
  }
}

.link-border-dotted-hover {
  &:hover {
    border-bottom: 1px dotted transparent;
  }
}

.link-border-dotted-color-hover {
  &:hover {
    color: @link-hover-color;
    border-bottom: 1px dotted transparent;
  }
}

.link-box-shadow {
  text-decoration: none;
  box-shadow: 0 2px;
}

.link-box-shadow-color {
  &:hover {
    color: @link-hover-color;
  }
}

.link-box-shadow-hover {
  &:hover {
    color: @link-color;
    box-shadow: none;
  }
}

.link-box-shadow-color-hover {
  &:hover {
    color: @link-hover-color;
    box-shadow: none;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console