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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <html>
<head>
 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
   <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
</head>
    
<body>
    <div id="container">
<h2>Social Media/Icon Buttons:</h2>

<!-- SM icons -->
<a href="#" class="fa fa-facebook"></a>
<a href="#" class="fa fa-twitter"></a>
<a href="#" class="fa fa-google"></a>
<a href="#" class="fa fa-linkedin"></a>
<a href="#" class="fa fa-youtube"></a>
<a href="#" class="fa fa-instagram"></a>
<a href="#" class="fa fa-pinterest"></a>
<a href="#" class="fa fa-snapchat-ghost"></a>
<a href="#" class="fa fa-skype"></a>
<a href="#" class="fa fa-android"></a>
<a href="#" class="fa fa-dribbble"></a>
<a href="#" class="fa fa-vimeo"></a>
<a href="#" class="fa fa-tumblr"></a>
<a href="#" class="fa fa-vine"></a>
<a href="#" class="fa fa-foursquare"></a>
<a href="#" class="fa fa-stumbleupon"></a>
<a href="#" class="fa fa-flickr"></a>
<a href="#" class="fa fa-yahoo"></a>
<a href="#" class="fa fa-reddit"></a>
<a href="#" class="fa fa-rss"></a>
<a href="#" class="fa fa-codepen"></a>
<a href="#" class="fa fa-wordpress"></a>
<a href="#" class="fa fa-calendar"></a>
<a href="#" class="fa fa-phone"></a>
<a href="#" class="fa fa-tablet"></a>
<a href="#" class="fa fa-laptop"></a>
    
    <!-- others -->

      <h2>Loading Icons:</h2>
      <button class="buttonload">
  <i class="fa fa-spinner fa-spin"></i>
</button>

<button class="buttonload">
  <i class="fa fa-circle-o-notch fa-spin"></i>
</button>

<button class="buttonload">
  <i class="fa fa-refresh fa-spin"></i>
</button>

   <h2>Hover/Fade Buttons:</h2>
   <button class="button"><span>Hover </span></button>
   
   <button class="btn">Fade in</button>
   
<button class="btn2">Fade out</button>
   
   <h2>Download Button:</h2>
   <button class="down"><i class="fa fa-download"></i> Download</button>
   
   <h2>Next/Prev Buttons:</h2>
   <a href="#" class="previous round">&#8249;</a>
<a href="#" class="next round">&#8250;</a>
   
   <h2>Full-Width Button:</h2>
   
   <button type="button" class="full">Full-Width</button>
   
   <h2>Round Buttons:</h2>
   
      <button class="roundbtn button1">2px</button>
   <button class="roundbtn button2">4px</button>
   <button class="roundbtn button3">8px</button>
   <button class="roundbtn button4">12px</button>
   <button class="roundbtn button5">50%</button>
   <button class="roundbtn button6">200px</button>
    </div>
</body>
</html>
              
            
!

CSS

              
                /* this project was inspired by: W3schools.com */

body {
   background-color: #f2f2f2;
   font-family: 'Montserrat', sans-serif;
   padding: 15px;
}

div {
    border: 3px solid lightgrey;
    padding: 15px 15px 15px 15px;
}

h2 {
    color: #000000;
    font-size: 40;
    font-weight: lighter;
    text-transform: capitalize;
}
.fa {
  padding: 20px;
  font-size: 30px;
  width: 50px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
}

.fa:hover {
    opacity: 0.7;
}

.fa-facebook {
  background: #3B5998;
  color: white;
}

.fa-twitter {
  background: #55ACEE;
  color: white;
}

.fa-google {
  background: #dd4b39;
  color: white;
}

.fa-linkedin {
  background: #007bb5;
  color: white;
}

.fa-youtube {
  background: #bb0000;
  color: white;
}

.fa-instagram {
  background: #125688;
  color: white;
}

.fa-pinterest {
  background: #cb2027;
  color: white;
}

.fa-snapchat-ghost {
  background: #fffc00;
  color: white;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.fa-skype {
  background: #00aff0;
  color: white;
}

.fa-android {
  background: #a4c639;
  color: white;
}

.fa-dribbble {
  background: #ea4c89;
  color: white;
}

.fa-vimeo {
  background: #45bbff;
  color: white;
}

.fa-tumblr {
  background: #2c4762;
  color: white;
}

.fa-vine {
  background: #00b489;
  color: white;
}

.fa-foursquare {
  background: #45bbff;
  color: white;
}

.fa-stumbleupon {
  background: #eb4924;
  color: white;
}

.fa-flickr {
  background: #f40083;
  color: white;
}

.fa-yahoo {
  background: #430297;
  color: white;
}

.fa-soundcloud {
  background: #ff5500;
  color: white;
}

.fa-reddit {
  background: #ff5700;
  color: white;
}

.fa-rss {
  background: #ff6600;
  color: white;
}

.fa-codepen {
    background: #000000;
    color: white;
}

.fa-calendar {
    background: #9a2efe;
    color: white;
}

.fa-wordpress {
    background: #007bb5;
    color: white;
}

.fa-phone {
    background: #9a2efe;
    color: white;
}

.fa-tablet {
    background: #9a2efe;
    color: white;
}

.fa-laptop {
    background: #9a2efe;
    color: white;
}

/* Loading Icons */

.buttonload {
    background-color: #9a2efe;
    border: none;
    color: #ffffff;
    font-size: 16px;
    width: 100px;
    padding-right: 5px;
}

/* Hoverbtn */

.button {
  border-radius: 4px;
  background-color: #fa5882;
  border: none;
  color: #ffffff;
  text-align: center;
  font-size: 28px;
  padding: 20px;
  width: 200px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px;
}

.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.button:hover span {
  padding-right: 25px;
}

.button:hover span:after {
  opacity: 1;
  right: 0;
}

.btn {
  background-color: #fa5882;
  border: none;
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  margin: 4px 2px;
  opacity: 0.6;
  transition: 0.3s;
  border-radius: 4px;
  width: 200px;
  padding: 29px;
}

.btn:hover {
   opacity: 3;
}

.btn2 {
  background-color: #fa5882;
  border: none;
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  margin: 4px 2px;
  transition: 0.3s;
  border-radius: 4px;
  width: 200px;
  padding: 29px;
}

.btn2:hover {
   opacity: 0.5;
}
/* download btn */

.down {
    background-color: #0080FF;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 200px;
    border-radius: 4px;
    padding-right: 24px;
}

.down:hover {
    background-color: #81BEF7;
}

/* nest/prev btn */

a {
    text-decoration: none;
    display: inline-block;
    padding: 8px 16px;
}

a:hover {
    background-color: #ddd;
    color: #000000;
}

.previous {
    background-color: #81bef7;
    color: #ffffff;
    border-radius: 50px;
}

.next {
    background-color: #81bef7;
    color: #ffffff;
    border-radius: 50px;
}

/* full-width */

.full {
    display: block;
    width: 100%;
    border: none;
    background-color: #fe2e2e;
    color: #ffffff;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
}

.full:hover {
    background-color: #f5a9a9;
}

/* round btn */

.roundbtn {
    background-color: #58d3f7;
    border: none;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.button1 {border-radius: 2px;}
.button2 {border-radius: 4px;}
.button3 {border-radius: 8px;}
.button4 {border-radius: 12px;}
.button5 {border-radius: 50%;}
.button6 {border-radius: 200px;}
              
            
!

JS

              
                /* there is no JavaScript here : ) */
              
            
!
999px

Console