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

              
                <div class="c-accordion">
    <div class="c-accordion__item c-accordion__item--closed">
        <div class="c-accordion__item-header" aria-expanded="false" aria-controls="content1">
            <div class="c-toolbar">
                <div class="c-toolbar__left">
                    <div class="c-toolbar__item">
                        <button class="c-button c-button--borderless c-button--icon" type="button">
                            <span class="c-button__content">
                                <div class="o-svg-icon o-svg-icon-chevron-right  ">
                                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                        <path d="M9.29289 18.7071C8.90237 18.3166 8.90237 17.6834 9.29289 17.2929L14.5858 12L9.29289 6.70711C8.90237 6.31658 8.90237 5.68342 9.29289 5.29289C9.68342 4.90237 10.3166 4.90237 10.7071 5.29289L16.7071 11.2929C17.0976 11.6834 17.0976 12.3166 16.7071 12.7071L10.7071 18.7071C10.3166 19.0976 9.68342 19.0976 9.29289 18.7071Z" fill="#595959" />
                                    </svg>
                                </div>
                                <div class="u-sr-accessible">Chevron
                                </div>
                            </span>
                        </button>
                        <span class="c-accordion__item-title">Title 1</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="c-accordion__item-content" id="content1" aria-hidden="true">
            <p>Content 1</p>
        </div>
    </div>
    <div class="c-accordion__item c-accordion__item--closed">
        <div class="c-accordion__item-header" aria-expanded="false" aria-controls="content2">
            <div class="c-toolbar">
                <div class="c-toolbar__left">
                    <div class="c-toolbar__item">
                        <button class="c-button c-button--borderless c-button--icon" type="button">
                            <span class="c-button__content">
                                <div class="o-svg-icon o-svg-icon-chevron-right  ">
                                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                        <path d="M9.29289 18.7071C8.90237 18.3166 8.90237 17.6834 9.29289 17.2929L14.5858 12L9.29289 6.70711C8.90237 6.31658 8.90237 5.68342 9.29289 5.29289C9.68342 4.90237 10.3166 4.90237 10.7071 5.29289L16.7071 11.2929C17.0976 11.6834 17.0976 12.3166 16.7071 12.7071L10.7071 18.7071C10.3166 19.0976 9.68342 19.0976 9.29289 18.7071Z" fill="#595959" />
                                    </svg>
                                </div>
                                <div class="u-sr-accessible">Chevron
                                </div>
                            </span>
                        </button>
                        <span class="c-accordion__item-title">Title 2</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="c-accordion__item-content" id="content2" aria-hidden="true">
            <p>Content 2</p>
        </div>
    </div>
</div>

<div class="c-alert c-alert--default undefined">
    <div class="o-svg-icon o-svg-icon-circle-information o-svg-icon--default ">
        <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z" fill="#595959" />
            <path d="M12 10C12.5523 10 13 10.4477 13 11V17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17V11C11 10.4477 11.4477 10 12 10Z" fill="#595959" />
            <path d="M13.5 7.5C13.5 8.32843 12.8284 9 12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5Z" fill="#595959" />
        </svg>
    </div>
    <div class="c-alert__body">
        <div class="c-alert__text">
            <h4 class="c-alert__title">Lorem, ipsum dolor sit amet consectetur adipisicing elit.</h4>
        </div>
    </div>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console