CodePen

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;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................