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

              
                <section id="info">
  <div class="row">
    <div class="card">
      <h2>Titel Lorem</h2>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam culpa blanditiis sit, laboriosam at praesentium maxime esse voluptas. Quos aliquid, possimus eum itaque accusamus nihil reprehenderit nesciunt excepturi quas sint.</p>
    </div>
    <div class="card">
      <h2>Titel Lorem</h2>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam culpa blanditiis sit, laboriosam at praesentium maxime esse voluptas. Quos aliquid, possimus eum itaque accusamus nihil reprehenderit nesciunt excepturi quas sint.</p>
    </div>
  </div>
</section>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Marvel:400,700')

*
  padding: 0
  margin: 0
  box-sizing: border-box
body
  font-family: 'Marvel', sans-serif
  background-color: yellow
#info
  background-color: yellow
  padding: 2rem 0
.row
  width: 100%
  max-width: 45rem
  margin: 0 auto
  padding: 1.5rem
  background-color: yellow
.card
  display: inline-block
  width: 45%
  //margin: 0 auto
  padding: 4rem 1rem 7rem 1rem
  background-color: teal
  position: relative
  &:after
    content: ""
    display: block
    width: 0px
    height: 0px
    background-color: skyblue
    top: 0px
    right: 0px
    border-bottom: 20px solid darken(teal, 5%)
    border-left: 20px solid darken(teal, 5%)
    border-right: 20px solid yellow
    border-top: 20px solid yellow
    position: absolute
    filter: drop-shadow(-5px 5px 3px rgba(0,0,0,0.5))
  &:before
    content: ""
    display: block
    width: 0px
    height: 0px
    border-top: 40px solid darken(teal, 5%)
    border-right: 40px solid darken(teal, 5%)
    border-left: 40px solid yellow
    border-bottom: 40px solid yellow
    bottom: 0px
    left: 0px
    position: absolute
    filter: drop-shadow(7px -7px 5px rgba(0,0,0,0.5))
    margin-right: 10%
  &:nth-of-type(1)
    margin-right: 9%
  h2
    color: snow
    margin-bottom: 1rem
    font-weight: 400
    text-transform: uppercase
    letter-spacing: 1px
  p
    color: snow
    font-size: 1.1rem
    line-height: 140%
  
              
            
!

JS

              
                
              
            
!
999px

Console