Pen Settings



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


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


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.


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.


                <div class="wrapper">
    <p>Nulla vitae dignissim risus. Aenean commodo, neque ullamcorper ornare imperdiet, ex tellus lobortis erat, sed <span class="tooltip" data-tooltip-text="This is your tooltip">vestibulum nulla turpis vitae turpis</span>. Fusce vel pellentesque diam. Proin imperdiet lacus ac pellentesque pellentesque. Sed <span class="tooltip" data-tooltip-text="This is your other tooltip This is your other tooltip This is your other tooltip This is your other tooltip">rhoncus</span> dignissim ex.</p>


                body {
    font-family: 'Roboto', arial;

.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    p {
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.4;
        font-size: 1.2rem;
        color: #666;

.tooltip {
    position: relative;
    border-bottom: 2px solid blue;
    cursor: default;
    &::before {
        content: '';
        display: none;
        width: 0;
        height: 0;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        border-top: 4px solid #000;
        position: absolute;
        top: 0;
        left: 1rem;
        transform: translateY(-1px);
    &::after {
        content: attr(data-tooltip-text);
        position: absolute;
        top: 0;
        left: 0;
        background: #000;
        border-radius: 3px;
        padding: 0.7em;
        color: #fff;
        font-size: 0.8rem;
        min-width: 110px;
        max-width: 240px;
        text-align: center;
        transform: translateY(-100%);
        display: none;
    &:hover::after {
        display: block;