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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


  <p class="cards-values">Lorem ipsum dolor sit amet,   consectetur adipiscing elit. Nunc aliquet lorem commodo, semper mauris nec, suscipit nisi. Nullam laoreet massa sit amet leo malesuada imperdiet eu a augue. Sed ac diam quis ante congue volutpat non vitae sem. Vivamus a felis id dui aliquam tempus
  <span class="tooltip"></span>


                body {
  background-color: #ffffff;

div {
  width: 20%;
  position: relative;

//For Multi-line Ellipses{
  overflow: hidden;
  position: relative;
  line-height: 1.2em;
  max-height: 40px;
  width: 200px;
  &:before {
    content: '...';
    position: absolute;
    right: 0;
    bottom: 0;
  &:after {
    content: '';
    position: absolute;
    right: 0;
    width: 1em;
    height: 1em;
    margin-top: 0.2em;
    background: #ffffff;

//For Tooltip
span.tooltip {
	min-width: 220px;
	padding: .8rem;
	position: absolute;
  right: 0px;
	background-color: #edf8f9;
	box-shadow: 0 5px 6px 0 #ddd;
  display: none;
  &.open {
    display: block;


                $('body').on('mouseenter', '', function() {
  		var $this = $(this);
  		var initialHeight = 40;
  		var innerHeight = $this.innerHeight();
		if(initialHeight === innerHeight){
  	}).on('mouseleave', '', function() {
  		var tooltip = $(this).next();