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

              
                <div class="container">
	<input id="rad1" type="radio" name="rad" checked>
	<section style="background: rgba(63,81,181,1)">
		<i class="fa fa-anchor"></i>
		<h1>Sit Amet</h1>
		<p>Pellentesque mattis tellus ligula, id scelerisque massa euismod sed. Phasellus et fringilla justo. Praesent eros ipsum, rhoncus vel lacus ut, dictum interdum risus</p>
		<label for="rad3"><i class="fa fa-chevron-left"></i></label>
		<label for="rad2"><i class="fa fa-chevron-right"></i></label>
	</section>
	<input id="rad2" type="radio" name="rad">
	<section style="background: rgba(0,150,136,1)">
		<i class="fa fa-line-chart"></i>
		<h1>Lobortis Blandit</h1>
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus pretium ac ex nec tincidunt.</p>
		<label for="rad1"><i class="fa fa-chevron-left"></i></label>
		<label for="rad3"><i class="fa fa-chevron-right"></i></label>
	</section>
	<input id="rad3" type="radio" name="rad">
	<section style="background: rgba(255,193,7,1)">
		<i class="fa fa-shopping-basket"></i>
		<h1>Aliquet Ullamcorper</h1>
		<p>Interdum et malesuada fames ac ante ipsum primis in faucibus. Vestibulum nunc ligula, bibendum laoreet ligula id, aliquet ullamcorper erat. Donec eget tellus ut nunc maximus faucibus.</p>
		<label for="rad2"><i class="fa fa-chevron-left"></i></label>
		<label for="rad4"><i class="fa fa-chevron-right"></i></label>
	</section>
	<input id="rad4" type="radio" name="rad">
	<section style="background: rgba(233,30,99,1)">
		<i class="fa fa-heart"></i>
		<h1>Tellus</h1>
		<p>Vivamus pretium ac ex nec tincidunt.</p>
		<label for="rad3"><i class="fa fa-chevron-left"></i></label>
		<label for="rad1"><i class="fa fa-chevron-right"></i></label>
	</section>
</div><!-- /.container -->


              
            
!

CSS

              
                input[type="radio"] 
	display none
	&:checked
		+
			section
				display block

body
	font-family 'Open Sans', sans-serif
	font-weight lighter
	margin 0

.container
	position absolute
	width 100%
	height 100%;
	section
		display none
		height 100%
		padding 15px
		background #449DF5
		color white
		text-align center
		h1
			margin-bottom 0
			font-family 'Nunito', sans-serif
			font-weight lighter
			font-size 2em
		p
			width 75%
			margin 0 auto
			padding 10px
		label
			position absolute
			display inline-block
			cursor pointer
			font-size 1.5em
			top 50%
			&:nth-child(odd)
				right 120px
			&:nth-child(even)
				left 120px
		>
			i
				font-size 6em !important
				margin-top 50px
				margin-bottom 25px
				

              
            
!

JS

              
                // no js here.
              
            
!
999px

Console