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

              
                <main>
	<div>
		<!-- Left Aligned -->
		<section id="left-flex">
			<div class="shado-banner ribbon">
				<div class=" title-wrapper">
					<h1 class="no-margin no-border">Boom! Pow!</h1>
					<p>Fixed Background Image with Caption</p>
				</div>
			</div>
		</section><!-- /end Left Aligned -->
		<p class="spacer"></p>
		<!-- Fixed Background Image -->
		<section id="fixed-bg">
			<div class="shado-banner title-wrapper">
				<h1 class="no-margin no-border">Non Dictum Ipsum Tincidunt Donec</h1>
			</div>
		</section><!-- /end Fixed Background Image -->
		<p class="spacer"></p>
		<!-- Title Outlined -->
		<section id="title-outlined">
			<div class="shado-banner ribbon">
				<h1 class="no-margin no-border">Curabitur Fermentum Bibendum Nulla</h1>
			</div>
		</section><!-- /end Title Outlined -->
		<p class="spacer"></p>
		<!-- Transparent Box -->
		<section id="transparent-overlay">
			<div class="overlay">
				<div class="title-wrapper">
					<h2 class="no-margin no-border">This is some text in an opaque box</h2>
				</div>
			</div>
		</section><!-- /end Transparent Box -->
		<p class="spacer"></p>
		<!-- Skewed -->
		<section id="skewed">
			<div class="shado-banner overlay">
				<h1 class="no-margin no-border">Lorem Ipsum Consectetur Adipiscing Elit</h1>
			</div>
		</section><!-- /end Skewed -->
		<p class="spacer"></p>
		<!-- Simple Gradient -->
		<section id="simple-gradient">
			<div class="shado-banner blue-overlay">
				<h1 class="banner no-border no-margin-top">Mauris Aliquet Malesuada Feugiat</h1>
			</div>
		</section><!-- /end Simple Gradient -->
		<p class="spacer"></p>
	</div>
</main>
              
            
!

CSS

              
                html{
	-ms-text-size-adjust:100%;
	-webkit-text-size-adjust:100%;
	-ms-touch-action:manipulation;
	touch-action:manipulation;
	font-family:'Roboto','Droid Sans',Avenir,Segoe UI,Helvetica Neue,sans-serif;
	width:100%;
}
body,html{
	color:rgba(0,0,0,.75);
	font-weight:400;
	margin:0;
	padding:0;
	overflow-x:visible!important;
}
body{
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-orient:vertical;
	-webkit-box-direction:normal;
	-ms-flex-direction:column;
	flex-direction:column;
	font-size:18px;
	height:100%;
	line-height:1.6;
	min-height:100vh;
	width:100%;
}
.shado-banner{
	-webkit-box-shadow:0 2px 2px -1px rgba(0,0,0,.35),0 1px 5px -2px rgba(0,0,0,.35),0 1px 8px -1px rgba(0,0,0,.25);
	box-shadow:0 2px 2px -1px rgba(0,0,0,.35),0 1px 5px -2px rgba(0,0,0,.35),0 1px 8px -1px rgba(0,0,0,.25);
}
*{
	-webkit-box-sizing:border-box;
	box-sizing:border-box;
}
.spacer{
	-ms-flex-positive:1;
	-webkit-box-flex:1;
	flex-grow:1;
	width:100%;
	height:80px;
}
/****
	*	FIRST BOX
	**/
#left-flex .ribbon *{
	position:relative;
}
#left-flex .ribbon:before{
	background-color:rgba(20,30,50,.9);
	content:'';
	display:block;
	height:525px;
	left:0;
	position:absolute;
	width:100%;
	z-index:0;
}
#left-flex .ribbon{
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	background-size:cover;
	background:url('https://cdn2.hubspot.net/hubfs/3218524/banners/phone-woman.jpg') center center / cover no-repeat fixed;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	height:525px;
	-webkit-box-pack:center;
	-ms-flex-pack:center;
	justify-content:center;
	margin:0;
	width:100%;
	z-index:-1;
}
#left-flex .title-wrapper{
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-orient:vertical;
	-webkit-box-direction:normal;
	-ms-flex-flow:column wrap;
	flex-flow:column wrap;
	-webkit-box-pack:center;
	-ms-flex-pack:center;
	justify-content:center;
	margin:0;
	max-width:1040px;
	min-width:200px;
	padding:0;
	text-align:left;
	width:88%;
}
#left-flex .title-wrapper > *{
	color:#f2f2f2;
	font-weight:400;
	margin:0;
	padding:0;
	text-align:left;
}
#left-flex h1{
	font-size:3.5rem;
	line-height:1.1;
}
#left-flex p{
	font-size:1.75rem;
}
@media only screen and (max-width:629px){
	#left-flex .title-wrapper{
		-webkit-appearance:none;
		-moz-appearance:none;
		appearance:none;
	}
	#left-flex #title-wrapper h1{
		font-size:2.75rem;
	}
	#left-flex p{
		font-size:1.4rem;
	}
}
/****
	*	SECOND BOX
	**/
#fixed-bg .title-wrapper *{
	position:relative;
}
#fixed-bg .title-wrapper{
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	background:url(https://cdn2.hubspot.net/hubfs/3218524/banners/phone-woman.jpg) center bottom / cover no-repeat fixed;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	height:400px;
	-webkit-box-pack:center;
	-ms-flex-pack:center;
	justify-content:center;
	vertical-align:middle;
	width:100%;
	z-index:-1;
}
#fixed-bg .title-wrapper:before{
	background-color:rgba(72,111,230,.9);
	content:" ";
	display:block;
	height:400px;
	left:0;
	position:absolute;
	width:100%;
	z-index:0;
}
#fixed-bg h1{
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	color:#f6f6f6;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	float:none;
	font-size:3.25em;
	font-weight:300;
	height:83%;
	-webkit-box-pack:center;
	-ms-flex-pack:center;
	justify-content:center;
	margin:0 auto;
	max-width:750px;
	min-width:240px;
	text-align:center;
	width:90%;
	line-height:1.1;
}
@media only screen and (max-width:649px){
	#fixed-bg h1{
		appearance:none;
		-webkit-appearance:none;
		-moz-appearance:none;
	}
}
@media only screen and (max-width:649px) and (min-width:530px){
	#fixed-bg h1{
		font-size:2.8em;
	}
}
@media only screen and (max-width:529px){
	#fixed-bg h1{
		font-size:2.4em;
		height:100%;
		width:100%;
	}
}
/****
	*	THIRD BOX
	**/
#title-outlined .ribbon *{
	position:relative;
}
#title-outlined .ribbon:before{
	background:linear-gradient(110deg,rgba(225,151,19,.5) -30%,rgba(159,91,118,.9) 44%,rgba(130,111,203,.9) 105%);
	content:" ";
	display:block;
	height:400px;
	left:0;
	position:absolute;
	width:100%;
	z-index:0;
}
#title-outlined .ribbon{
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	background:url('https://cdn2.hubspot.net/hubfs/3218524/banners/mdl.min.svg') left center / cover no-repeat scroll;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	float:none;
	height:400px;
	-webkit-box-pack:center;
	-ms-flex-pack:center;
	justify-content:center;
	left:0;
	margin:0;
	vertical-align:middle;
	width:100%;
	z-index:-1;
}
#title-outlined h1{
	border-top:3px solid #f5f5f5;
	border-bottom:3px solid #f5f5f5;
	color:#f5f5f5;
	display:inline-block;
	float:none;
	font-size:3.5rem;
	font-weight:400;
	height:auto;
	letter-spacing:-.02em;
	line-height:1.2;
	padding:15px;
	text-align:center;
	text-shadow:1px 0px 1px rgba(0,0,0,.45);
	width:80%;
}
@media only screen and (max-width:649px){
	#title-outlined h1{
		appearance:none;
		-webkit-appearance:none;
		-moz-appearance:none;
		font-size:3rem;
		width:88%;
	}
}
@media only screen and (max-width:529px){
	#title-outlined h1{
		font-size:2.5rem;
		width:100%;
		padding:10px 0;
	}
}
/****
	*	FOURTH BOX
	**/
#transparent-overlay .overlay *{
	position:relative;
}
#transparent-overlay .overlay{
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	background-size:cover;
	background:url('https://cdn2.hubspot.net/hubfs/3218524/banners/mdl-airplane.jpg') 65% center / cover no-repeat scroll;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	height:400px;
	-webkit-box-pack:center;
	-ms-flex-pack:center;
	justify-content:center;
	margin:0;
	padding:0;
	width:100%;
	z-index:1;
}
#transparent-overlay .title-wrapper{
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	background-color:rgba(250,251,252,.77);
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-pack:center;
	-ms-flex-pack:center;
	justify-content:center;
	margin:0;
	max-width:880px;
	width:73%;
}
#transparent-overlay .title-wrapper h2{
	color:#4e70c1;
	font-size:42px;
	font-weight:300;
	line-height:1.3;
	max-width:780px;
	padding:25px 15px;
	text-align:center;
	width:80%;
}
@media only screen and (max-width:519px){
	#transparent-overlay .title-wrapper{
		width:97%;
	}
	#transparent-overlay .title-wrapper h2{
		font-size:32px;
	}
}
/****
	*	FIFTH BOX
	**/
#skewed .overlay *{
	position:relative;
}
#skewed{
	height:650px;
	overflow:hidden;
	-webkit-transform:skewY(0deg) translateY(0);
	transform:skewY(0deg) translateY(0);
	width:100%;
}
#skewed .overlay:before{
	background:linear-gradient(-182deg,rgba(121,50,116,.9) 5%,rgba(41,80,156,.85) 100%);
	content:"";
	display:block;
	height:600px;
	left:0;
	overflow:hidden;
	position:absolute;
	width:100%;
	z-index:0;
}
#skewed .overlay{
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	background:url(https://cdn2.hubspot.net/hubfs/3218524/banners/mdl-airplane.jpg) center center / cover no-repeat scroll;
	bottom:0;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	height:600px;
	-webkit-box-pack:center;
	-ms-flex-pack:center;
	justify-content:center;
	left:0;
	overflow:hidden;
	position:absolute;
	right:0;
	top:0;
	-webkit-transform-origin:top left;
	transform-origin:top left;
	-webkit-transform:skewY(-4deg) translateY(-8%);
	transform:skewY(-4deg) translateY(-8%);
	z-index:-1;
}
#skewed h1{
	color:#fff;
	font-size:3.5rem;
	font-weight:300;
	line-height:1.2;
	margin:0 auto;
	text-align:center;
	-webkit-transform-origin:top left;
	transform-origin:top left;
	-webkit-transform:skewY(4deg) translateY(8%);
	transform:skewY(4deg) translateY(8%);
	width:77%;
}
@media only screen and (max-width:849px){
	#skewed h1{
		font-size:3rem;
	}
}
/****
	*	SIXTH BOX
	**/
#simple-gradient .blue-overlay *{
	position:relative;
}
#simple-gradient .blue-overlay:before{
	background:linear-gradient(125deg,rgba(129,150,174,.9) -30%,rgba(29,50,74,.8) 40%,rgba(4,9,14,.6) 100%);
	content:"";
	display:block;
	height:400px;
	left:0;
	position:absolute;
	width:100%;
	z-index:0;
}
#simple-gradient .blue-overlay{
	background:url('https://cdn2.hubspot.net/hubfs/3218524/banners/mdl-banner.jpg') center center / cover no-repeat scroll;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	height:400px;
	left:0;
	position:relative;
	z-index:-1;
}
#simple-gradient h1{
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	color:#fff;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	float:none;
	font-size:3.5rem;
	font-weight:300;
	-webkit-box-pack:center;
	-ms-flex-pack:center;
	justify-content:center;
	line-height:1.2;
	margin:0 auto;
	max-width:800px;
	text-align:center;
	width:90%;
}
@media only screen and (max-width:849px){
	#simple-gradient h1{
		font-size:3rem;
		width:77%;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console