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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <div class="content">
    <p>提问:你是如何评价text-indent百分比值的?</p>
    <p>回答:我其实一开始是对text-indent百分比值抱有很大期望的,希望可以有一些非常犀利的应用,但是后来发现,要么有缺陷,要么鸡肋。或许是自己掌握的还不够吧!</p>
    <p>提问:text-indent有什么其他特性吗?</p>
    <p>回答:text-indent具有继承性,因此,级别较高的祖先元素慎用;另外,其仅对第一行内联元素有效果。</p>
</div>
              
            
!

CSS

              
                .content {
    max-width: 300px;
    margin: auto;
    text-align: left;
}

p {
    text-indent: -3em;
    padding-left: 3em;
}

.content p {
    margin: .5em 0;
}

.content p:nth-of-type(even) {
    margin: .5em 0 1em;
}
              
            
!

JS

              
                
              
            
!
999px

Console