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

              
                <div class="blog">
  <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/727708/profile/profile-512.jpg?2" alt=""><p>Podoba Ci się ten snippet? Odwiedź <a href="https://radek024.github.io/blog/">#bykiwkodzie</a> i poznaj wiele innych ciekawych kwestii!</p>
</div>
<section class="about-us"></section>
              
            
!

CSS

              
                body
  background-color: #eee
  padding-top: 64px
.about-us
  width: 800px
  height: 600px
  background-color: red
  margin: 0 auto
  position: relative
  overflow: hidden
  &:after
    display: block
    content: ""
    position: absolute
    bottom: -70px
    left: -20px
    width: 700px
    height: 100px
    background-color: #fff
    transform: rotate(11deg)
  &:before
    display: block
    content: ""
    position: absolute
    bottom: -70px
    right: -190px
    width: 700px
    height: 100px
    background-color: #fff
    transform: rotate(168deg)
   
  
.blog
  max-height: 64px
  width: calc(100% - 20px)
  padding: 10px
  position: absolute
  background-color: #000
  top: 0
  left: 0
  z-index: 2
  display: flex
  vertical-align: middle
  align-items: center
  justify-content: center
  border-bottom: 3px solid #FFA726
  img
    max-width: 64px
    border-radius: 50%
  p
    color: #FFF
    padding-left: 10px
    font-weight: 700
    > a
      color: #FFA726
  
              
            
!

JS

              
                
              
            
!
999px

Console