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 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

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.

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

              
                <img class="mfc" src="https://blog.codepen.io/wp-content/uploads/2012/06/Made-For-Codepen.png" alt="Made For CodePen" />

<center>
	<div class="header">
		<div class="search-logo">
			<a href="http:/www.codepen.io/" target="_blank"><span>CodePen&nbsp;OmniSearch</span></a>
			<form class="content">
				<input id="searchbar" class="searchbar" type="search" placeholder="Search Pens" onkeydown="search(this)" />
			</form>
		</div>
		<div class="main">
			<h1 class="content">Easily search for any pen using either this website, or  by using the <a class="extend" href="https://chrome.google.com/webstore/detail/codepen-omnisearch/nhhllinajngichobomhaainophdohgpj" target="_blank">Google Chrome Extension.</a></h1>
			<a class="bookmarkMe" href="http://extant.elementfx.com/CodePen_OmniSearch/">
Drag me to your bookmarks bar!</a>
		</div>
		<div class="main">
			<h1 class="content">Fun Facts:</h1>
			<h3 class="content">- It's free!</h3>
			<h3 class="content">- The extension is only a tiny 9.4 kB!</h3>
			<h3 class="content">- It could potentially make your life easier!</h3>
		</div>
	</div>
	<span class="footer">NOTE: I am not affiliated with <a class="extend" href="https://codepen.io/" target="_blank">CodePen</a>. Any <a class="extend" href="https://blog.codepen.io/documentation/brand-assets/logos/" target="_blank">logos</a> used are the property of <a class="extend" href="https://codepen.io/" target="_blank">CodePen</a> and I did not create them.</span>
</center>
              
            
!

CSS

              
                html {
	font-family: "Arial", sans-serif;
	background: #252527;
	animation: fadeIn 5s;
	color: white;
}

a {
	color: #f44336;
}

.mfc {
	position: fixed;
	bottom: 40px;
	right: 0;
	height: 100px;
}

.content {
	animation: slideInFromLeft 2s;
}

.main {
	border-top: 3px solid white;
	padding-bottom: 30px;
}

span {
	color: white;
	font-size: 3.5em;
	text-decoration: none;
}

.header {
	/* padding-top: 170px; */
	animation: opacityGrow 2s;
}

.search-logo {
	animation: search-logo-move 2s;
	padding-bottom: 30px;
}

.searchbar {
  background: white;
	border: 5px solid white;
	border-radius: 5px;
	display: inline-block;
	height: 100px;
	width: 500px;
	padding: 10px 30px 10px 30px;
	font-size: 3em;
	color: black;
}

@keyframes fadeIn {
	0% { background: black; }
	100% { background: #252527; }
}

@keyframes opacityGrow {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes search-logo-move {
	0% { transform: translateY(-500px); }
	100% { transform: translateY(0px); }
}

.bookmarkMe {
	background: white;
	border: 5px solid white;
	border-radius: 5px;
	display: inline-block;
	padding: 10px 30px 10px 30px;
	color: black;
	text-decoration: none;
	animation: slideInFromLeft 2.5s;
}

.extend {
	text-decoration: none;
}

@keyframes slideInFromLeft {
	0% { transform: translateX(-500px); }
	100% { transform: translateX(0); }
}

.footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px;
	background: #333;
	font-size: 1em;
}
              
            
!

JS

              
                function search(search) {
    if(event.keyCode == 13) {
        window.open('https://codepen.io/search?q=' + search.value + '&limit=all&order=popularity&depth=everything&show_forks=false');
    }
}
              
            
!
999px

Console