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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <h1>First-letter Selector</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc mauris enim, ullamcorper vitae volutpat a, accumsan eu lectus. Donec eget est quis lacus placerat fermentum. Donec ultrices hendrerit velit, ut tincidunt libero faucibus eu. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut et metus mauris. Vestibulum eleifend ipsum eget massa suscipit, et ornare urna congue. Duis quam tortor, finibus in pretium a, congue at sem. Etiam et nisl in tellus maximus blandit. Aenean vitae nunc varius, suscipit est a, lacinia justo.</p>
<p>Nullam condimentum diam ac ex laoreet, at eleifend erat tincidunt. Integer non ligula nibh. Cras non laoreet nisi. Vestibulum luctus eget elit quis sodales. Curabitur sed blandit est. Nulla consectetur facilisis nulla, at ultrices diam lobortis a. Vestibulum sed dui ultrices, placerat turpis id, rhoncus turpis. Cras sit amet est at odio finibus tempus nec ut leo. Nam finibus, odio a semper viverra, nunc quam euismod augue, eu dignissim enim mi ac risus. Proin quis ligula nibh. In non semper erat.</p>
              
            
!

CSS

              
                p::first-letter{
  font-family:georgia;
  font-size:60px;
  font-weight:bold;
}
              
            
!

JS

              
                
              
            
!
999px

Console