cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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.

              <div class="demo">
	<div class="raised-cap intro">
	That is the story of this country, the story that has brought me to this stage tonight, the story of generations of people who felt the lash of bondage, the shame of servitude, the sting of segregation, but who kept on striving and hoping and doing what needed to be done so that today I wake up every morning in a house that was built by slaves.</div>

<div class="sunken-cap intro">And I watch my daughters, two beautiful, intelligent, black young women playing with their dogs on the White House lawn. And because of Hillary Clinton, my daughters and all our sons and daughters now take for granted that a woman can be president of the United States.</div>

<div class="drop-cap intro">
	So, look, so don’t let anyone ever tell you that this country isn’t great, that somehow we need to make it great again. Because this right now is the greatest country on earth! And as my daughters prepare to set out into the world, I want a leader who is worthy of that truth, a leader who is worthy of my girls’ promise and all our kids’ promise, a leader who will be guided every day by the love and hope and impossibly big dreams that we all have for our children.</div>
              // Style to demo initial-letter
// ============================

@supports (initial-letter: 5) or (-webkit-initial-letter: 5) {
	.raised-cap::first-letter {
		-webkit-initial-letter: 3 1;
		initial-letter: 3 1;
	.sunken-cap::first-letter {
		-webkit-initial-letter: 3 2;
		initial-letter: 3 2;

	.drop-cap::first-letter {
		-webkit-initial-letter: 3;
		initial-letter: 3;
	.intro::first-letter {
		color: hsl(350, 50%, 50%);

// Styles for fun
// ==============

.demo {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 2rem;
	@include bp(large) {
		flex-direction: row;

.intro {
	flex: 1 0 auto;
	margin-bottom: 3rem;
	@include bp(large) {
		flex: 0 1 30vw;

@import url('https://fonts.googleapis.com/css?family=Martel:200,300,400|Open+Sans:400" rel="stylesheet');

body {
	font-family: 'Martel', serif;
	font-size: calc(80% + 0.35vw);
	font-weight: 300;
	line-height: 2;
	margin-left: auto;
	margin-right: auto;
	padding: 0;


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