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

              
                .tooltip
  .tooltip-content
    .tooltip-arrow
    p Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore blanditiis, placeat minus
    
              
            
!

CSS

              
                .tooltip
  position relative
  width 100%
  max-width 200px
  height 50px
  margin 200px auto
  border 1px solid gray
  cursor pointer
  
  &:hover
    .tooltip-content
      display block
      animation tooltip .7s ease forwards
      
.tooltip-content
  display none
  opacity 0
  position absolute
  bottom calc(100% + 50px)
  left 50%
  transform translateX(-50%)
  width 100%
  max-width 350px
  min-width 300px
  padding 5px
  border 1px solid #e9e9e9
  box-shadow 0 8px 16px 0 rgba(0,0,0,.15)
  
.tooltip-arrow
  position absolute
  z-index 1
  bottom -15px
  left 50%
  transform translateX(-50%)
  width 20px
  height 25px
  overflow hidden
  
  &:before
    content ''
    position absolute
    top -4px
    left 50%
    width 20px
    height 20px
    background-color #fff
    transform translateX(-50%) rotate(45deg)
    box-shadow 8px 8px 9px -4px rgba(0,0,0,.15)
  
  
  
  
  
  
  
  
  
@keyframes tooltip {
  0% {
    
  }
  100% {
    opacity 1
    bottom calc(100% + 30px)
  }
}
  
  
              
            
!

JS

              
                
              
            
!
999px

Console