Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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="notification">
  <img src="https://cl.ly/J49B/3951818241085781941.png" alt="">
  
  <div class="message">
    <h2>Wake up Neo</h2>
    <p>30 Minutes Ago</p>
  </div>
  
  <div class="buttons">
    <a href="#">Close</a>
    <a href="#">Snooze</a>
  </div>
  
</div>

<div class="notification">
  <img src="https://cl.ly/J4a1/Reminders.png" alt="">
  
  <div class="message">
    <h2>Follow the white rabbit</h2>
    <p>90 Minutes Ago</p>
  </div>
  
  <div class="buttons">
    <a href="#">Close</a>
    <a href="#">Snooze</a>
  </div>
  
</div>
              
            
!

CSS

              
                @import "compass/css3";


* {
  padding: 0;
  margin: 0;
}
 
body {
  background:#222 url(https://cl.ly/J3q4/universe.jpg);
}
 
.notification {
  height: 100px;
  width: 410px;
  margin: 20px;
  position: relative;
  border-radius: 10px;
  
  color: #4d4d4d;
  font-family: Helvetica, Arial, sans-serif;
  
  -webkit-box-shadow: 3px 3px 3px rgba(0,0,0,0.5);
          box-shadow: 3px 3px 3px rgba(0,0,0,0.5);
  @include background-image(linear-gradient(rgba(255,255,255,0.9), rgba(235,235,235,0.9)));
}
 
.notification h2 {
  padding: 20px 0 0 0px;
  font: bold 18px Myriad, Helvetica, Arial, sans-serif;
  text-shadow: 0px 2px 1px #fff;
}
 
.notification p {
  font: bold 13px Myriad, Helvetica, Arial, sans-serif;
  text-shadow: 0px 1px 1px #fff;
}
  
.notification img {
  float: left;
  padding: 10px 15px 0 15px;
  width: 60px;
}

.buttons a {
  display: block;
  width: 60px;
  margin: 5px;
  padding: 8px;
  position: absolute;
  border: 1px solid #999;
  border-radius: 5px;

  color: #222;
  font: 13px Helvetica, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  
  -webkit-box-shadow: 0px 1px 1px #fff;
  box-shadow: 0px 1px 1px #fff;
  @include background-image(linear-gradient(rgba(255,255,255,0.5), rgba(235,235,235,0.5)));
}

.buttons a:hover {
   @include background-image(linear-gradient(rgba(255,255,255,1), rgba(235,235,235,1)));
}

.buttons a:nth-child(1) {
  right: 10px;
  top: 8px;
}

.buttons a:nth-child(2) {
  right: 10px;
  top: 50px;
}
              
            
!

JS

              
                $(function() {
    $( ".notification" ).draggable();
});
              
            
!
999px

Console