cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmloctocatspinnerstartv

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="intro">
	Sample quote from Steve Jobs: “Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it.”
</div>

            
          
!
            
              // Style to demo initial-letter
// ============================
$font-size: 1.15rem;
$cap-size: $font-size * 6.25;

// Wrap in @supports with `not` operator
@supports (not(initial-letter: 5)) and (not(-webkit-initial-letter: 5)) {
	.intro::first-letter {
		color:  hsl(350, 50%, 50%);
		font-size: $cap-size;
		float: left;
		line-height: .7;
		margin: 17px 2px 0 0;
	}
}

// Progressive enhancements for supported browsers
@supports (initial-letter: 5) or (-webkit-initial-letter: 5) {
	.intro:nth-of-type(1)::first-letter {
		-webkit-initial-letter: 3;
		initial-letter: 3;
	}
}

.intro::first-letter {
	color: hsl(350, 50%, 50%);
}

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

.intro {
	margin: 1rem auto;
	max-width: 40rem;
}

body {
	font-family: Georgia, serif;
	font-size: $font-size;
	line-height: 2;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem;
}

            
          
!
999px
Close

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.

Go PRO

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

Console