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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                %h1 My first web page
%h2 What this is
%p
  A simple page put together using HTML.
  %em I said a simple page put together using HTML.
  A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML.
%h2 Why this is
%ul
  %li To learn HTML
  %li
    To show off
    %ol
      %li To my boss
      %li To my friends
      %li To my cat
      %li To the little talking duck in my brain
  %li Because I have fallen in love with my computer and want to give her some HTML loving.
%h2 Where to find the tutorial
%p
  %a{:href => "http://www.htmldog.com"}
    %img{:alt => "HTML Dog", :height => "90", :src => "http://www.htmldog.com/badge1.gif", :width => "120"}/
%h3 Some random table
%table
  %tr
    %td Row 1, cell 1
    %td Row 1, cell 2
    %td Row 1, cell 3
  %tr
    %td Row 2, cell 1
    %td Row 2, cell 2
    %td Row 2, cell 3
  %tr
    %td Row 3, cell 1
    %td Row 3, cell 2
    %td Row 3, cell 3
  %tr
    %td Row 4, cell 1
    %td Row 4, cell 2
    %td Row 4, cell 3
%h3 Blockquote
%p
  So I asked Bob about quotations on the Web and he said
  = succeed "." do
    %q I know as much about quotations as I do about pigeon fancying
%blockquote{:cite => "http://www.htmldog.com/guides/html/intermediate/text/"}
  %p blockquote and q are used for quotations. blockquote is generally used for standalone often multi-line quotations whereas q is used for shorter, in-line quotations.
%h3 Code in HTML page
%p
  If you add the line
  %code
    %var givevaderachuckle
    \= true;
  to the
  %code destroy_planet
  subroutine and then type
  %kbd ilovejabba
  into the console, the big bad green Death Star laser will etch
  %samp Slug Lover!
  on the planet's surface.
%h3 Navigation
%nav#main_nav
  %ul
    %li
      %a{:href => "/tutorials/"} Tutorials
    %li
      %a{:href => "/reference/"} Reference
    %li
      %a{:href => "/articles/"} Articles
    %li
      %a{:href => "/about/"} About us

              
            
!

CSS

              
                body {
    font-family: verdana, helvetica, sans-serif;
    font-size: 14px;
    background-color: #ffc;
    margin: 20px;
    padding: 0;
}
p {
    color: #888;
    line-height: 21px;
}
a {
    color: blue;
}
a:hover{
  color: brown;
}
h2 {
    font-size: 1.5em;
    background-color: #F6F0BC;
    margin: 10px;
    padding: 20px;
    border-style: solid;
    border-width: 3px;
    border-left-width: 20px;
    border-right-width: 20px;
    border-color: brown;
}
table {
    background-color: brown;
    color: #fff;
}

nav li { display: inline-block; }

              
            
!

JS

              
                
              
            
!
999px

Console