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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <a href="https://compliance.umich.edu" class="button button--dk-background" target="_blank" rel="noopener noreferrer">
          <svg width="48" height="46" xmlns="http://www.w3.org/2000/svg">
            <path
              transform="translate(0 -73)"
              fill-rule="evenodd"
              d="M14.301676 118.497207L5.00558659 112.240223 16.3575419 98.5642458 0 93.6480447 3.48603352 83.4581006 19.0391061 89.9832402 18.2346369 73 29.7653631 73 28.9608939 89.9832402 44.5139665 83.4581006 48 93.6480447 31.6424581 98.5642458 42.9050279 112.240223 33.6089385 118.407821 23.9553073 103.927374z"
            />
          </svg>
          Learn more about U-M compliance &raquo;</a
        >
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Montserrat:700');
body {
  background-color: #00274c;
  padding:1rem;
}
.button {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 1rem 0;
  font-family: 'Montserrat';
  padding: 0.85em 1em;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: background-color 0.25s ease-out, color 0.25s ease-out;
  font-size: 0.9rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  background-color: #1779ba;
  color: #fefefe;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  font-size: 1.125rem;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  width: 100%;
}
[data-whatinput="mouse"] .button {
  outline: 0;
}
.button:hover,
.button:focus {
  background-color: #14679e;
  color: #fefefe;
}
@media screen and (max-width: 39.9375em) {
  .button {
    line-height: 1.25;
  }
}
.button svg {
  left: -25px;
  position: absolute;
  top: -22px;
  transition: all 0.2s ease-in-out;
}
.button:hover,
.button:focus {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
.button:hover svg,
.button:focus svg {
  -webkit-transform: rotate(5deg) scale3d(1.125, 1.125, 1.125);
  transform: rotate(5deg) scale3d(1.125, 1.125, 1.125);
}

.button--dk-background {
  background-color: #ffcb05;
  color: #0a0a0a;
  border: 1px solid #ebbc01;
}
.button--dk-background:hover,
.button--dk-background:focus {
  background-color: #407ec9;
  color: #0a0a0a;
}
.button--dk-background svg {
  fill: #407ec9;
}
.button--dk-background:hover,
.button--dk-background:focus {
  background-color: #ffcb05;
  color: #fefefe;
  border: 1px solid #004e95;
}
.button--dk-background:hover:hover,
.button--dk-background:hover:focus,
.button--dk-background:focus:hover,
.button--dk-background:focus:focus {
  background-color: #407ec9;
  color: #fefefe;
}
.button--dk-background:hover svg,
.button--dk-background:focus svg {
  fill: #ffcb05;
}

              
            
!

JS

              
                
              
            
!
999px

Console