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

Auto Save

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

              
                /* from https://codepen.io/yesilfasulye/pen/iGHru */<br>
/* remixed by www.dev3lop.com itylergarrett@gmail.com NOTES: this doesn't scale correctly on all devices, it really isn't a great solution for menu buttons,<br> rather an amazing way to learn about how these interact and how you can make shapes with CSS*/
<div class="buttonHolder">
  <a href="#" class="button tick"></a>
  <a href="#" class="button cross"></a>
  <a href="#" class="button heart"></a>
  <a href="#" class="button flower"></a>
</div>

              
            
!

CSS

              
                .buttonHolder{
  margin:10px auto;
  width:200px auto;
}


		.button{
	    border-left: 10px solid transparent;
	    border-right: 10px solid transparent;
	    border-top: 80px;
			background-image: -webkit-linear-gradient(top, #fff, rgba(84,106,123,.3));
			background-image: linear-gradient(top, #f4f1ee, #fff);
			border-radius: 0%;
			box-shadow: 0px 10px 0px 0px rgba(0, 0, 0, .3), inset 0px 40px 0px 0px white, inset 0px -3px 30px 30px rgba(84,106,123,.6);
			float:left;
			height: 50px;
			margin: 0 20px 30px 0;
			position: relative;
			width: 30px;			
			-webkit-transition: all .3s linear;
			transition: all .3s linear;
		}

		.button:after{
			color:rgba(84,106,123,.7);
			content: "";
			display: block;
			font-size: 30px;
			height: 30px;
			text-decoration: none;
			text-shadow: 0px -2px 10px #bdb5b4, 1px 1px 1px white;
			position: absolute;
			width: 30px;
		}


		.heart:after{
      color: rgba(84,106,123,.4);
      font-size:35px;
			content: "✉";
			left: 3.5px;
			top: 5px;
		}

		.flower:after{
      color: rgba(84,106,123,.4);
      font-size: 35px;
			content: "❖";
      transform: rotate(45deg);
			left: 5px;
			top: 7px;
		}

		.tick:after{
      color: rgba(84,106,123,.4);
      font-size: 35px;
			content: "⌂";
			left:4.5px;
			top:-2px;
		}

		.cross:after{
      color: rgba(84,106,123,.4);
      font-size: 20px;
			content: "♫";
			left: 6px;
			top: 9px;
		}

		.button:hover{
			background-image: -webkit-linear-gradient(top, #fff, rgba(84,106,123,.7));
			background-image: linear-gradient(top, #fff, #546a7b);
			color:#ffffff;
      border-radius: 20%;
      -webkit-transition: all .3s linear;
      -o-transition: all .3s linear;
      -moz-transition: all .3s linear;
			transition: all .3s linear;
		}

		.heart:hover:after{
			color:#546a7b;
			text-shadow:2px 1px 1px rgba(84,106,123,.7);
		}

		.flower:hover:after{
			color:#546a7b;
			text-shadow:2px 1px 1px rgba(84,106,123,.7);
		}

		.tick:hover:after{
			color:#546a7b;
			text-shadow:2px 1px 1px rgba(84,106,123,.7);
		}

		.cross:hover:after{
			color:#546a7b;
			text-shadow:2px 1px 1px rgba(84,106,123,.7);
		}

		

		.button:active{
			background-image: -webkit-linear-gradient(top, #efedec, #fff);
			background-image: linear-gradient(top, #efedec, #fff);
			box-shadow: 0 3px 5px 0 #fff, inset 0px -3px 1px 1px #fff;
      border-radius: 50%;
		}

		.button:active:after{
			color:#dbd2d2;
			text-shadow: 0px -1px 1px #bdb5b4, 0px 1px 1px white;
		}
              
            
!

JS

              
                
              
            
!
999px

Console