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 id='container'>

  <h1>The Daily Kitteh</h2>

    <nav>
        <ul>
          <li><a href='#'>Feral Adventures</a></li>
          <li><a href='#'>Kibble Kibbitz</a></li>
          <li><a href='#'>Tail Twitch Tales</a></li>
          <li><a href='#'>Sunny Window Reviews</a></li>
        </ul>
    </nav>

    <aside>
        <img src='https://practice-pixels.s3.amazonaws.com/kitten_200x200.jpg'    alt='Adorable kitten'>
        <h3>Kittehs of the Day</h3>
        <ul>
          <li>Spot</li>
          <li>Adeline</li>
          <li>Perspex</li>
          <li>Mr. Grumpy</li>
        </ul>
    </aside>

    <section id='main'>
        <h2>Busy Kittehs Very Busy</h2>	
        <p>
          Kitty ipsum dolor sit amet, meow sleep on your keyboard hiss eat the grass, sniff hiss sleep in the sink jump biting eat the grass climb the curtains. Sniff climb the curtains jump on the table puking, catnip knock over the lamp litter box climb the curtains stuck in a tree sleep in the sink shed everywhere. Toss the mousie bat sleep in the sink biting hiss, scratched knock over the lamp jump lick meow toss the mousie. Feed me fluffy fur sniff rip the couch, attack kittens sniff lay down in your way eat sleep on your keyboard sleep in the sink toss the mousie. Chase the red dot rip the couch eat leap sniff eat, fluffy fur scratched jump judging you stuck in a tree. Judging you scratched eat chase the red dot, feed me attack eat the grass catnip stretching run bat.
        </p>

        <p>
          Sleep in the sink toss the mousie sleep in the sink tail flick, chase the red dot litter box bat feed me jump stretching chase the red dot. Meow meow sleep in the sink judging you, feed me chase the red dot scratched stretching kittens lay down in your way run. Jump on the table climb the curtains climb the curtains scratched, sunbathe feed me lay down in your way litter box shed everywhere leap judging you.
        </p>
    </section>

    <footer>
        <ul>
          <li><a href='#'>Subscribe</a></li>
          <li><a href='#'>Pat the Editors</a></li>
          <li><a href='#'>Send us Catnip</a></li>
        </ul>
    </footer>
	
</div> <!-- /.container -->
              
            
!

CSS

              
                /* 
Colors:
Dark teel: 10889E
Light teel: E1F1F2
Medium teel: 45bcd2
Grey Teel: 445566
*/

body {
  background-color: #10889E;
  font-family: Verdana;
}

#container {
  width: 960px;
  margin: auto;
  background-color: #E1F1F2;
}

h1 {
  text-align: center;
  font-size: 3em;
  color: #445566;
  font-family: Georgia, Times, Serif;
  font-weight: normal;
  margin: 0;
  padding: 20px;
}

h2 {
  color: #445566;
  padding: 0px;
}

h3 {
  color: #445566;
  margin: 0px;
}

nav {
  background-color: #45bcd2;
  height: 30px;
  margin-bottom: 20px;
  text-align: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding-top: 5px;
}

nav li {
  display: inline;
  margin-left: 10px;
  margin-right: 10px;
}

nav li a {
  color: white;
}

aside {
  width: 200px;
  height: 350px;
  border: 1px solid #10889E;
  float: left;
  margin-left: 30px;
  padding: 5px;
}

#main {
  width: 650px;
  float: right;
  margin-right: 30px;
  line-height: 20px;
}

footer {
  height: 50px;
  background-color: lightgrey;
  clear: both;
}

footer ul {
  list-style: none;
  text-align: center;
  padding-top: 15px;
}

footer li {
  display: inline;
  margin-left: 10px;
  margin-right: 10px;
}

footer li a {
  color: black;
}
              
            
!

JS

              
                
              
            
!
999px

Console