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-line Selector</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sodales condimentum metus eu gravida. Nulla metus urna, consectetur eu blandit et, suscipit ut urna. Vestibulum hendrerit ex eget ante malesuada, sed ultricies ante rhoncus. Etiam est nisi, sagittis accumsan viverra eget, blandit nec odio. Aliquam dictum dui sed nisl tristique, non feugiat velit convallis. Etiam pharetra leo vitae dolor mattis, at fermentum arcu porta. Pellentesque ut mauris arcu. Morbi blandit varius pharetra. Pellentesque aliquam mi ut scelerisque bibendum. Fusce vulputate tincidunt sem et pulvinar. Maecenas auctor, quam non auctor pellentesque, eros sem feugiat nisl, id pellentesque elit odio nec ex. Curabitur pretium facilisis sapien bibendum vulputate. Quisque rutrum risus id maximus pellentesque. Morbi auctor sapien eget justo venenatis porta at vitae nunc. Quisque at volutpat lorem.</p>
              
            
!

CSS

              
                p{
  color:red;
}
p::first-line{
  content:'';
  color:blue;
}
              
            
!

JS

              
                
              
            
!
999px

Console