cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <a class="regular" href=“#”>Button</a>

<div class="skewed-container">
  <a class="skewed" href=“#”>Button</a>
</div>
            
          
!
            
              /* ---------------------------------------------------------- */
/* DEMO PURPOSES ONLY */
/* ---------------------------------------------------------- */
body {
  background-color: #272C2E; /* dark bg */
  margin: 10em; /* so the buttons aren't on the edges */
}

/* ---------------------------------------------------------- */
/* REGULAR BUTTON */
/* ---------------------------------------------------------- */

a.regular {
  color: white; /* white text */
  font-family: sans-serif; /* no times new roman */
  text-decoration: none; /* remove underline */
  padding: 1em 2em; /* give the btn some body */
  background: #3AA; /* greenish bg */
  border-radius: 3px; /* round those edges */
  transition: all .25s ease-in-out; /* smooth animation */
} 


/* ---------------------------------------------------------- */
/* SKEWED BUTTON */
/* ---------------------------------------------------------- */


.skewed-container {
  margin-top: 100px; /* for positioning only */
  -webkit-transform: skewX(18deg); /* skew the container */
     -moz-transform: skewX(18deg); /* ditto */
      -ms-transform: skewX(18deg); /* ditto */
       -o-transform: skewX(18deg); /* ditto */
          transform: skewX(18deg); /* ditto */
  background: #3AA; /*greenish bg */
  max-width: 7em; /* restrain width */
  transition: all .2s ease-out; /* smooth animation */
}

a.skewed {
  -webkit-transform: skewX(-18deg); /* skew the container */
     -moz-transform: skewX(-18deg); /* ditto */
      -ms-transform: skewX(-18deg); /* ditto */
       -o-transform: skewX(-18deg); /* ditto */
          transform: skewX(-18deg); /* ditto */
  color: white; /* text color */
  font-family: sans-serif; /* no times new romain */
  text-decoration: none; /* no default underline */
  display: block; /* expand the full space */
  padding: 1em 2em; /* add some girth to the button */
}


/* ---------------------------------------------------------- */
/* HOVER STATE FOR BOTH BU */
/* ---------------------------------------------------------- */


a.regular:hover,
.skewed-container:hover {
  box-shadow: 0px 10px 20px 0px rgba(0,0,0,.8);
  background: #0AA;
  transition: all .2s ease-out; /* smooth animation */
}

            
          
!
999px
Loading ..................

Console