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

              
                <article>
  <div class="img"><span></span></div>
  <div class="content">
    <h1>Title</h1>
    <p>Sed euismod lectus at dolor auctor efficitur. Aenean dignissim, elit sed facilisis lacinia, velit sem tincidunt mi, ultricies mattis nibh sapien sit amet arcu. <a href="http://store.daniellemlbastien.com">Maecenas a dui ex.</a> Proin at neque accumsan, convallis felis sit amet, elementum leo. Sed nisi tellus, blandit in hendrerit eu, rhoncus vitae nunc. Proin viverra egestas quam sed interdum.</p>

    <p>Morbi blandit, <a href="#">magna</a> non fermentum congue, arcu nibh egestas velit, tempor elementum justo odio a ipsum. Integer dictum odio eu dapibus condimentum. Proin pharetra lectus a purus sollicitudin hendrerit. Aliquam erat volutpat. Morbi cursus euismod posuere. Phasellus non porta velit. Donec imperdiet malesuada malesuada.</p>
  </div>
  </article>
              
            
!

CSS

              
                $white: #ffffff;
$blue: #27cbf4;
$purple: #c798f9;
$green: #9dd53a;

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 15pt; }

body {
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background-color: lighten($blue, 43%);
}

a {
  color: $blue;
  &:visited { 
    color:  $purple;
  }
  &:hover, 
  &:active {
    color: $green;
  }
  
}

article {
  margin: 20px auto;
  min-width: 300px;
  width: 50%;
  background-color: $white;
  border-radius: 1px;
  border: 1px solid darken($white, 3%);
  box-shadow: 1px 0 45px 3px rgba(0,0,0,.1);
  
  .content{
    padding: 20px;
  }
  
  .img {
    display: block;
    height: 150px;
    width: 100%;
    background:  url(https://c1.staticflickr.com/2/1630/23323241813_446b08df27_c.jpg) no-repeat;
    background-size: cover;
    background-position: center center;
    span{
      display:block;
      width: 100%;
      height: 100%;
      background-color: rgba(red($blue), green($blue), blue($blue), .2);
      backdrop-filter: blur(10px);
    }
  }
  
  h1{
    border-bottom: 1px solid darken($white, 4%);
    margin-bottom: 1rem;
  }
  
  p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console