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 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

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

              
                <html>
  <head>
    <title>Biscuits: Rebuttered</title>
    <link href="https://fontastic.s3.amazonaws.com/oWZzqxEZTAgxDYUEhb84hS/icons.css" rel="stylesheet">
  </head>
  <body>
    <div class="sidebar">
      <div><h1>Biscuits: Rebuttered</h1>
        <h2>Now with more Sodium!</h2></div>
      <div class="icon-list"></div>
      <ul class="menu">
        <a href=""><li>Mashed Potatoes<p>Get on them taters</p></li></a><a href=""><li>Green Beans<p>Pile those badboys on</p></li></a>
        <li>Cranberry Sauce<p>Don't act like you don't like it</p></li>
        <li>Stuffing<p>Stuff yourself</p></li>
        <li>Carrot Casserole<p>1% carrots, 99% brown sugar</p></li>
        <li>Honeybaked Ham<p>A gift from the heavens</p></li>
        <li>Corn Pudding<p>Mom made it</p></li>
        <li>Macaroni and Cheese<p>There's still room on your plate</p></li>
      </ul>
      <ul class="social-icons">
        <a href="https://www.twitter.com/"><li class="icon-social-twitter"></li></a>
        <a href="https://www.facebook.com/"><li class="icon-social-facebook"></li></a>
        <a href="https://plus.google.com/"><li class="icon-social-google-plus"></li></a>
        <a href="https://www.github.com/"><li class="icon-social-github"></li></a>
        <a href="http://www.teamtreehouse.com/"><li class="icon-social-treehouse"></li></a>
      </ul>
      <input type="text" placeholder="Search...">
    </div>
    <div class="main-content">
      <section class="post">
       <!-- <div class="featured">FEATURED</div>-->
        <img src="http://secretlifeofachefswife.com/wp-content/uploads/2011/08/Flaky_Buttermilk_Biscuits-1.jpg">
        <div class="text">
          <h4>Illusions, Michael</h4>
          <p> The only person that gets Lucille this excited is Gene. And guess what else is back. [slow wink] My breakfast? My friskiness. Mama horny Michael. Although George Michael had only got to second base, he'd gone in head first, like Pete Rose. Sweet old thing. Only two of those words describe Mom, so I know you're lying to me. What do you think about Sudden Valley? It sounds like a salad dressing, but for some reason I don't want to eat it. Ah, it is a rock, though. Should beat everything. Gob: There's not a lot of logic to it.</p>
        </div>
        <div class="post-footer">
          <ul>
            <li class="icon-calendar">April 12, 2015</li>
            <li class="icon-male">B. Loblaw</li>
            <li class="icon-folder">Debris</li>
            <li class="icon-price-tag">Banana stand</li>
          </ul>
        </div>
      </section>
      <section class="post">
          <img src="http://www.whatwereeating.com/food-photos/20091015_fluffy-buttermilk-biscuits.jpg">
        <div class="text">
          <h4>A cross from where</h4>
          <p> Taste the happy, Michael! Taste it! I may have committed some light treason. Hey, look at that – you're mean sober, too. I've always been deeply passionate about nature. Perhaps you remember Neuterfest? So did you see the new Poof? His name's Gary and we don't need anymore lawsuits. Or it could be your colon. I'd want to get in there and find some answers. This show was cancelled. I mean, COME ON. I deceived you, mom. Tricked makes it sound like we have a playful relationship. I'm sure, wherever your father is, she loves you very much.</p>
        </div>
        <div class="post-footer">
          <ul>
            <li class="icon-calendar">April 10, 2015</li>
            <li class="icon-male">Shirley</li>
            <li class="icon-folder">Sweat lodge construction</li>
            <li class="icon-price-tag">Avoiding hop-ons</li>
          </ul>
        </div>
      </section>
      <section class="footer">
        <p>Pickles Mayo Lettuce Tomato Bacon Ketchup Onion Mustard Cheese</p>
      </section>
    </div>
  </body>
</html>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #eee;
  display: flex;
  font-family: sans-serif;
}

img {
  width: 100%;
}

ul {
  list-style-type: none;
}

a {
 text-decoration: none;
 
}

a:link, a:visited {
  color: black;
}

a:hover {
  color: #666;
}

.sidebar {
  width: 30%;
  display: flex;
  flex-direction: column;
  padding: 80px 80px 0;
  background: #fff;
  font-family: sans-serif;
  border-right: 1px solid #ddd;
}

h1 {
  margin-bottom: 8px;
  font-weight: 500;
  font-family: 'Verdana';
}

h2 {
  color: #666;
  margin-bottom: 80px;
  font-weight: 100;
  font-size: 1.2em;
}
.menu p {
  margin-top: 12px;
  color: #666;
  font-weight: 100;
  font-size: .9em;
}

.social-icons {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 90px 0 80px;
  font-size: 1.9em;
}

.menu li {
  border-top: 1px solid #ccc;
  padding: 12px 0;
}

.menu {
  border-bottom: 1px solid #ccc;
}

input {
  background: #eee;
  border: 1px solid #ddd;
  padding: 12px;
  font-size: 1em;
}

.main-content {
  width: 70%;
  padding: 80px 80px 0;
}

.post {
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
}

.post-footer {
  background: #F7F7F7;
  padding: 45px 80px;
}

.post-footer ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.post-footer ul li {
  color: #707070;
}

/*.post-footer ul li[class^=icon] {
  margin-right: -25px;
}*/


.text {
  padding: 65px 80px 90px;
  font-family: 'Georgia';
}

h4 {
  margin-bottom: 60px;
  font-size: 2.4em;
}

.text p {
  font-size: 1.25em;
  line-height: 1.5;
}

.footer {
  background: #fff;
  border: 1px solid #ddd;
  padding: 45px 80px 35px;
  color: #666;
  font-size: 1em;
  font-weight: 100;
  font-family: 'Georgia';
}

.icon-list {
  display: none;
}

@media (max-width: 950px) {
  
  .menu,
  .social-icons,
  .sidebar input {
    display: none;
  }
  
  body {
    flex-direction: column;
  }
  
  .sidebar,
  .main-content {
    width: 100%;
  }
  
  .sidebar {
    padding: 8%;
    border-right: none;
    border-bottom: 1px solid #ccc;
    justify-content: space-between;
    flex-direction: row;
  }
  
  h2 {
    margin: 0;
  }
  
  h1 {
    margin-top: 20px;
  }
  
  .icon-list {
    display: initial;
    font-size: 2em;
    border: 1px solid #ddd;
    padding: 10px 10px 2px;
    align-self: center
  }
}

@media screen and (max-width: 600px), (orientation: portrait) {

  .main-content {
    padding: 0;
  }
  .post {
    margin-bottom: 0;
  }
  
  .text {
    padding: 10%;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console