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.

            
              html, body
	height: 100%

body
	display: flex
	justify-content: center
	align-items: center
	background: #FAFAFA

button
	padding: 20px 40px
	background: none
	border: none
	position: relative
	text-transform: uppercase
	font-weight: bold
	letter-spacing: 3px
	cursor: pointer
	&:after, &:before
		content: ''
		position: absolute
		top: 0
		left: 0
		bottom: 0
		right: 0
		border: 2px solid #000
		transition: transform .2s 
	&:after
		transform: translate(3px, 3px)	
	&:before
		transform: translate(-3px, -3px)
	&:hover
		&:after, &:before
			transform: translate(0)
            
          
!
999px
Loading ..................

Console