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

              
                <h1>Curabitur tristique</h1>
<p>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ac sodales sapien. Duis mattis euismod bibendum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed enim lorem, condimentum vel velit vitae, laoreet viverra quam. Pellentesque lorem mauris, aliquet eu enim eu, ornare fringilla tellus. Praesent vel nisl est. Suspendisse placerat purus at dolor tincidunt lobortis. Donec et convallis felis, sed lacinia risus.

Mauris sit amet quam dignissim, semper neque non, mollis sapien. Nunc condimentum fringilla mi, mollis fermentum ipsum ullamcorper sit amet. Mauris at ex sit amet neque efficitur tempor et nec erat. Donec sapien enim, ornare eu vestibulum in, vehicula nec quam. Quisque rutrum tincidunt ligula, ut ullamcorper libero dapibus ac. In sed viverra dui, non placerat lorem. Phasellus vel augue ac libero malesuada interdum.
</p>

<h2>Morbi suscipit fermentum <i class="fas fa-question-circle info-tooltip-long"></i></h2>

<p>
  Mauris sit amet quam dignissim, semper neque non, mollis sapien. Nunc condimentum fringilla mi, mollis fermentum ipsum ullamcorper sit amet. Mauris at ex sit amet neque efficitur tempor et nec erat. Donec sapien enim, ornare eu vestibulum in, vehicula nec quam. Quisque rutrum tincidunt ligula, ut ullamcorper libero dapibus ac. In sed viverra dui, non placerat lorem. Phasellus vel augue ac libero malesuada interdum.
  <i class="fas fa-info-circle info-tooltip"></i>
</p>

<p>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ac sodales sapien. Duis mattis euismod bibendum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed enim lorem, condimentum vel velit vitae, laoreet viverra quam. Pellentesque lorem mauris, aliquet eu enim eu, ornare fringilla tellus. Praesent vel nisl est. Suspendisse placerat purus at dolor tincidunt lobortis. Donec et convallis felis, sed lacinia risus.

Mauris sit amet quam dignissim, semper neque non, mollis sapien. Nunc condimentum fringilla mi, mollis fermentum ipsum ullamcorper sit amet. Mauris at ex sit amet neque efficitur tempor et nec erat. Donec sapien enim, ornare eu vestibulum in, vehicula nec quam. Quisque rutrum tincidunt ligula, ut ullamcorper libero dapibus ac. In sed viverra dui, non placerat lorem. Phasellus vel augue ac libero malesuada interdum.
</p>
              
            
!

CSS

              
                * {
  font-family: 'Open Sans', sans-serif;
}

.btn {
  margin-top: 100px;
}

i {
  color: #D9292A;
}

p {
  text-align: justify;
}
              
            
!

JS

              
                const contentShort = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'

const contentLong = 'Curabitur tristique, elit at ultricies luctus, diam nulla dignissim magna, vitae luctus ipsum sapien id erat. Vivamus porta lacus nibh, ac tempus tellus suscipit non. Aenean ornare mauris in congue semper. Etiam cursus risus eu purus feugiat, quis accumsan metus hendrerit. Suspendisse sit amet consectetur ipsum. Nam lorem neque, efficitur at placerat non, accumsan at enim. Etiam varius iaculis ex, quis tincidunt dui tempor sit amet. Nulla varius ornare volutpat. Donec eu dapibus turpis, quis maximus odio. Cras sollicitudin sed nisl nec sollicitudin. Suspendisse potenti..'

tippy(".info-tooltip", {
  placement: "bottom",
  arrow: true,
  arrowType: "sharp",
  animation: "fade",
  content: contentShort,
  flipOnUpdate: true
});

tippy(".info-tooltip-long", {
  placement: "top",
  arrow: true,
  arrowType: "sharp",
  animation: "fade",
  content: contentLong,
  flipOnUpdate: true
});
              
            
!
999px

Console