Pen Settings



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


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


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.


                <h1> Awesome bootstrap button extension</h1>
<h4> yes there are plenty of applications for this! :) </h4>

<button type="button" class="btn btn-default btn-arrow-left">Default</button>
<button type="button" class="btn btn-primary btn-arrow-left">Primary</button>
<button type="button" class="btn btn-success btn-arrow-left">Success</button>
<button type="button" class="btn btn-link">Link</button>
<button type="button" class="btn btn-info btn-arrow-right">Info</button>
<button type="button" class="btn btn-warning btn-arrow-right">Warning</button>
<button type="button" class="btn btn-danger btn-arrow-right">Danger</button>


                body { /* just for this demo. */
    padding: 30px;
.btn { /* just for this demo. */
    margin-top: 5px;
.btn-arrow-left {
    position: relative;
    padding-left: 18px;
    padding-right: 18px;
.btn-arrow-right {
    padding-left: 36px;
.btn-arrow-left {
    padding-right: 36px;
.btn-arrow-left:after { /* make two squares (before and after), looking similar to the button */
    position: absolute;
    top: 5px; /* move it down because of rounded corners */
    width: 22px; /* same as height */
    height: 22px; /* button_outer_height / sqrt(2) */
    background: inherit; /* use parent background */
    border: inherit; /* use parent border */
    border-left-color: transparent; /* hide left border */
    border-bottom-color: transparent; /* hide bottom border */
    border-radius: 0px 4px 0px 0px; /* round arrow corner, the shorthand property doesn't accept "inherit" so it is set to 4px */
    -webkit-border-radius: 0px 4px 0px 0px;
    -moz-border-radius: 0px 4px 0px 0px;
.btn-arrow-right:after {
    transform: rotate(45deg); /* rotate right arrow squares 45 deg to point right */
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
.btn-arrow-left:after {
    transform: rotate(225deg); /* rotate left arrow squares 225 deg to point left */
    -webkit-transform: rotate(225deg);
    -moz-transform: rotate(225deg);
    -o-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
.btn-arrow-left:before { /* align the "before" square to the left */
    left: -11px;
.btn-arrow-left:after { /* align the "after" square to the right */
    right: -11px;
.btn-arrow-left:before { /* bring arrow pointers to front */
    z-index: 1;
.btn-arrow-left:after { /* hide arrow tails background */
    background-color: white;