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.

  <h5>SIZE WINDOW</h5>
  <div class="ruler"><span>640px</span></div>
  <section class="flexy-parent">
    <input class="flexy-item" type="text" placeholder="Responsive input fields...">
    <input class="flexy-item" type="text" placeholder="will break at 640px...">
  <section class="flexy-parent">
    <input class="flexy-item" type="text" placeholder="flex-grow: 1">
    <input class="flexy-item" type="text" placeholder="flex-basis: 300px">
  <section class="flexy-parent">
    <textarea class="flexy-item" placeholder="And thanks to flexbox, everything stays nice and tidy."></textarea>
              @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,800");

$primary: rgba(30, 120, 80, 0.8);
$black10: rgba(#000, 0.1);
$black50: rgba(#000, 0.5);
$white: #efefef;
$family: 'Open Sans', helvetica, sans-serif;

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
html {
	font-family: $family;
	font-size: 24px;
	color: $black50;
body {
	background: #efefef;
main {
	position: relative;
	width: 100%;
h1 {
	padding: 20px 0 0;
	font-weight: 800;
	font-size: 4rem;
	letter-spacing: -0.8rem;
h1, h5 {
 text-align: center; 
h5 {
  margin: 0 0 20px;
.ruler {
	position: relative;
	display: block;
	left: 50%;
	margin: 0 0 30px -320px;
	width: 640px;
	height: 6px;
	line-height: -20px;
	background: $black10;

	span {
		display: block;
		position: absolute;
		padding: 8px;
		width: 80px;
		top: -22px;
		left: 280px;
		text-align: center;
		background: $white;
input {
	display: inline-block;
	font-family: $family;
	margin: 10px;
	padding: 20px;
	background: $primary;
	border: 2px solid $black10;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 300;
	color: $white;

	&:focus {
		outline: 0;
textarea {
	height: 300px;
.flexy-parent {
	display: flex;
	max-width: 800px;
	margin: 0 auto;
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
	align-content: flex-start;

.flexy-item {
	flex: 1 0 300px;

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................