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='box'>
  <div class='header'>
    <div class='title'>
      <p>Edit Away Message</p>
    </div>
    <div class='close'>
      <p>X</p>
    </div>
  </div>

  <div class='enter-label'>
    <div class='text-label'>
      <p>Enter label:</p>
    </div>
    <div class='lol-extra-border'>
      <div class='dropdown'>
        <input type='text' value='not here rn'>
        <div class='caret-box'>
          <span class='caret'></span>
        </div>
      </div>
    </div>
  </div>

  <div class='msg-label'>
    <p>Enter new Away message:</p>
  </div>

  <div class='customize-row'>
    <div class='blue-a-box'>
      <p class='text-blue'>A</p>
      <p class='background-blue'>A</p>
    </div>

    <div class='size-a-box'>
      <p class='small-a'>A</p>
      <p class='medium-a'>A</p>
      <p class='large-a'>A</p>
    </div>

    <div class='bold-box'>
      <p class='bold-text'>B</p>
      <p class='italic-text'>I</p>
      <p class='underline-text'>u</p>
    </div>
    <div class='link-box'>
      <p class='link-text'>link</p>
      <img src="http://www.jesush.com/wp-content/uploads/2008/07/happy10.gif">
    </div>
  </div>

  <div class='text-box'>
    <textarea rows="4">I am away from my computer right now. ....eatin lunch hmu on my cell</textarea>
  </div>

  <div class='special-characters'>
    <p>Special Characters:</p>
    <p>%n = Screen Name of Buddy</p>
    <p class='why'>%d = Current date</p>
    <div class='clear'>
      <p class='left'>
        %t&nbsp;&nbsp;= Current time
      </p>
      <p class='right'>
        Save for later use
        <input type="checkbox">
      </p>
    </div>
  </div>

  <div class='bottom-buttons'>
    <button>I'm Away</button>
    <button>Cancel</button>
  </div>

</div> <!-- end box -->
              
            
!

CSS

              
                @mixin tahoma
  font-family: 'Tahoma'

@mixin box-shadow-dark
  box-shadow: 1px 1px 1px #424242

@mixin button-border
  border-top: 1px solid white
  border-left: 1px solid white
  border-right: 1px solid #848484
  border-bottom: 1px solid #848484

@mixin hover
  &:hover
    cursor: pointer

.caret
  display: inline-block
  width: 0
  height: 0
  margin-left: 2px
  margin-top: 12px
  vertical-align: middle
  border-top: 6px dashed
  border-top: 6px solid\9
  border-right: 6px solid transparent
  border-left: 6px solid transparent

.box
  width: 400px
  height: 430px
  border: 1px solid gray
  background: #d6d6ce
  margin: 20px auto
  position: relative
  padding: 1px
  +button-border
  +box-shadow-dark
  

.header
  background: #08216b /* For browsers that do not support gradients */    
  background: -webkit-linear-gradient(left, #08216b , #a5c6ef) /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(right, #08216b, #a5c6ef) /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(right, #08216b, #a5c6ef) /* For Firefox 3.6 to 15 */
  background: linear-gradient(to right, #08216b , #a5c6ef) /* Standard syntax (must be last) */
  height: 35px
  clear: both
  .title
    font-family: 'Tahoma', serif
    color: white
    font-size: 12px
    font-weight: bold
    float: left
    line-height: 0px
    margin: 4px 5px
  .close
    padding: 0px 8px
    font-family: 'Arial'
    color: black
    font-weight: 700
    background: #d6d6ce
    float: right
    line-height: 0px
    font-size: 12px
    margin: 4px
    border-top: 1px solid white
    border-left: 1px solid white
    border-right: 1px solid #848484
    border-bottom: 1px solid #848484
    box-shadow: 1px 1px 1px #424242
    &:hover
      cursor: pointer

.enter-label
  clear: both
  line-height: 0px
  height: 50px
  .text-label
    float: left
    +tahoma
    font-size: 14px
    font-weight: 300
    margin: 25px 0px 20px 30px
  /* ignore my silly class names hehe */
  .lol-extra-border
    border-top: 1px solid #848484
    border-left: 1px solid #848484
    border-right: 1px solid white
    border-bottom: 1px solid white
  input
    float: right
    font-family: 'Arial'
    font-weight: 300
    background: white
    padding: 2px
    width: 220px
    height: 25px
    margin: 23px 30px
    position: relative
    border-top: 2px solid #424242
    border-left: 2px solid #424242
    border-right: 2px solid #d6d6ce
    border-bottom: 2px solid #d6d6ce
  .caret-box
    position: absolute
    top: 62px
    right: 36px
    height: 26px
    background: #d6d6ce
    +button-border
    +box-shadow-dark
    padding: 0px 4px
    +hover

.msg-label
  +tahoma
  margin: 40px 30px 10px
  font-size: 14px
  white-space: nowrap

/* tbh i know i could've used flexbox or a UL here but i didn't so w/e */
.customize-row
  height: 30px
  border: 1px solid white
  outline: 1px solid #848484
  margin: 0px 30px

  .blue-a-box
    margin-top: -10px
    width: 70px
    font-family: 'Times New Roman'
    .text-blue
      font-weight: bolder
      color: #0000ff
      margin: 0px 10px
      display: inline-block
    .background-blue
      font-weight: bolder
      color: #d6d6ce
      background: #0000ff
      padding: 0px 5px
      display: inline-block

  .size-a-box
    margin-top: -34px
    margin-left: 72px
    border-left: 1px solid white
    border-right: 1px solid #848484
    width: 100px
    box-shadow: -1px 0px 0px #848484
    .small-a, .medium-a, .large-a
      font-weight: bold
      display: inline-block
      margin: -10px 8px
      font-family: 'Times New Roman'
    .small-a
      font-size: 12px
    .medium-a
      font-size: 16px
    .large-a
      font-size: 19px

  .bold-box
    margin-top: -19px
    margin-left: 174px
    border-left: 1px solid white
    border-right: 1px solid #848484
    width: 85px
    .bold-text, .italic-text, .underline-text
      display: inline-block
      margin: -10px 8px
      font-family: 'Times New Roman'
    .bold-text
      font-weight: bold
    .italic-text
      font-style: italic
      font-size: 18px
    .underline-text
      text-decoration: underline
      font-size: 19px

  .link-box
    margin-top: -20px
    margin-left: 261px
    border-left: 1px solid white
    width: 75px
    .link-text, img
      margin: -10px 10px
    .link-text
      font-weight: bold
      color: #0000ff
      text-decoration: underline
      font-size: 12px
      display: inline-block
      margin-top: -3px
    img
      display: inherit
      margin: -18px 0px 0px 42px
      width: 25%

.text-box
  textarea
    margin: 2px 30px
    width: 334px
    font-family: 'Times New Roman'
    font-size: 16px
    resize: none
    -webkit-font-smoothing: antialiased
    text-shadow: 1px 1px 1px rgba(0,0,0,0.004)
    border-top: 1px solid #848484
    border-left: 1px solid #848484
    border-bottom: 1px solid #d6d6ce
    border-right: 1px solid #d6d6ce
    outline: 1px solid white


.special-characters
  +tahoma
  font-size: 14px
  margin: 20px 30px
  p
    line-height: 8px
  .why
    margin-bottom: 0px

.clear
  clear: both
.left
  float: left
.right
  float: right
  margin-top: 10px

.bottom-buttons
  width: 400px
  text-align: center
  margin: 5px auto
  display: inline-block
  button
    +tahoma
    font-size: 14px
    width: 100px
    height: 30px
    background: #d6d6ce
    +button-border
    +box-shadow-dark
    &:hover
      cursor: pointer
              
            
!

JS

              
                // check this out on http://awaymessag.es and edit the msg and stuff if you wanna
              
            
!
999px

Console