startv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.

HTML

            
              <div class="sidebar">
  <nav>
    <h1>My Blog</h1>
    <ul>
      <li><a href="#">Home</a></li>
      <li><a href="#">About</a></li>
      <li><a href="#">Clients</a></li>
      <li><a href="#">Contact Us</a></li>
    </ul>
  </nav>
</div>
<section class="content">
  <article>
    <h1>Post title</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur voluptatibus in repellat aperiam odio necessitatibus facilis vero laboriosam nisi ex quo quam quas deleniti molestias eligendi modi mollitia maxime illum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et minus ducimus ullam in consequuntur nostrum quia voluptatem blanditiis velit quibusdam ea omnis quam voluptas voluptate officia quasi odit fugit accusantium.           </p>
  </article>
  <article>
    <h1>Post title</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur voluptatibus in repellat aperiam odio necessitatibus facilis vero laboriosam nisi ex quo quam quas deleniti molestias eligendi modi mollitia maxime illum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et minus ducimus ullam in consequuntur nostrum quia voluptatem blanditiis velit quibusdam ea omnis quam voluptas voluptate officia quasi odit fugit accusantium.           </p>
  </article>
  <article>
    <h1>Post title</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur voluptatibus in repellat aperiam odio necessitatibus facilis vero laboriosam nisi ex quo quam quas deleniti molestias eligendi modi mollitia maxime illum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et minus ducimus ullam in consequuntur nostrum quia voluptatem blanditiis velit quibusdam ea omnis quam voluptas voluptate officia quasi odit fugit accusantium.           </p>
  </article>
  <article>
    <h1>Post title</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur voluptatibus in repellat aperiam odio necessitatibus facilis vero laboriosam nisi ex quo quam quas deleniti molestias eligendi modi mollitia maxime illum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et minus ducimus ullam in consequuntur nostrum quia voluptatem blanditiis velit quibusdam ea omnis quam voluptas voluptate officia quasi odit fugit accusantium.           </p>
  </article>
  <article>
    <h1>Post title</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur voluptatibus in repellat aperiam odio necessitatibus facilis vero laboriosam nisi ex quo quam quas deleniti molestias eligendi modi mollitia maxime illum. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et minus ducimus ullam in consequuntur nostrum quia voluptatem blanditiis velit quibusdam ea omnis quam voluptas voluptate officia quasi odit fugit accusantium.           </p>
  </article>
</section>
            
          
!

CSS

            
              /* Better box-model */
*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Layout */

.sidebar {
  width: 25%;
  height: 100%;
  padding-top: 40px;
  position: fixed;
  overflow: auto;
  background: lightsteelblue;
}
nav {
  padding: 0 40px 0 40px;
}
.content {
  margin: 0 0 0 25%;
  padding: 40px 40px 0 40px;
  width: 75%;
}
article {
  margin-bottom: 40px;
}

/* Make it a little prettier */
h1, p, nav {
  font-family: Georgia;
  line-height: 1.4em;
}
h1 {
  font-size: 2em;
}
a {
  color: navy;
}
            
          
!

JS

            
              
            
          
!
999px
Loading ..................

Console