octocatstartv

Pen Settings

via HTML Inspector

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

            
              <article> 
  <div class="article-prose">
    <div class="article-details">
      <p class="category">Burgers & Burgers</p>
      <h1>The Art of Burgers</h1>
      <p class="precis">Here is some text for all the interesting things you'll learn about burgers</p>
      <p class="meta"><span>Words </span>Stuart Robson</p>
      <p class="meta"><span>Photographs </span>Ronald McDonald</p>
    </div>
    <div class="article">
      <p><span>L</span>orem ipsum dolor sit amet, consectetur adipisicing elit. Nulla dolore similique quo nisi quas recusandae, illum ex possimus ad, dicta perspiciatis qui at corrupti, dolores atque deserunt eveniet assumenda amet.</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Velit culpa quos cupiditate, explicabo quidem, reprehenderit eaque, voluptatibus aliquam itaque delectus dolorem deserunt? Quam voluptate, amet ducimus mollitia exercitationem, rerum est.</p>
      
    </div>
  </div>
  <div class="article-image--main">
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/26/buergstack.jpg" alt="a stack of burger patties in a bun." />
  </div> 
      <div class="more-article">
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/26/fiveguys.jpg" alt="" class="article__image--full" />
      <div class="more-prose">
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Esse minus unde est, deleniti, sequi sint, iste modi quos quod vero consectetur error. Magni possimus nobis suscipit quasi sunt laudantium omnis. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet nihil eligendi, sequi nostrum. Ex nam aliquam minus deserunt vero. Temporibus aliquam cupiditate culpa, beatae eos fugiat error dolorem voluptatum cumque.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio eveniet corrupti vitae repellat incidunt ipsam expedita quo cumque excepturi nobis praesentium dolor sunt, voluptatum quas facere, eius, esse consequatur, hic! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et accusamus error tempore optio reiciendis aliquid velit autem enim, praesentium doloremque beatae eum, hic incidunt in officiis molestias quod ea molestiae.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Esse minus unde est, deleniti, sequi sint, iste modi quos quod vero consectetur error. Magni possimus nobis suscipit quasi sunt laudantium omnis. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet nihil eligendi, sequi nostrum. Ex nam aliquam minus deserunt vero. Temporibus aliquam cupiditate culpa, beatae eos fugiat error dolorem voluptatum cumque.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio eveniet corrupti vitae repellat incidunt ipsam expedita quo cumque excepturi nobis praesentium dolor sunt, voluptatum quas facere, eius, esse consequatur, hic! Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
      </div>
      <div class="more-more-prose">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/26/burger.jpg" alt="" />
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio aut ab, modi dolorum non eaque. Laudantium beatae vel, id, doloremque voluptatem magnam fugiat consectetur reiciendis vitae dolorum recusandae. Architecto, praesentium! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Velit, temporibus. Dolore libero, impedit, provident, perferendis rem nisi in quos molestias fugiat voluptates ut, dignissimos quas a. Ipsum nobis, quas et.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt dolore laborum, magnam distinctio amet voluptatibus ducimus explicabo quae corporis! In quam atque at omnis dolore tempore eligendi saepe consectetur reiciendis.</p>
      </div>
      <div class="more-more-more-prose">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/26/burger.jpg" alt="" />
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio aut ab, modi dolorum non eaque. Laudantium beatae vel, id, doloremque voluptatem magnam fugiat consectetur reiciendis vitae dolorum recusandae. Architecto, praesentium! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Velit, temporibus. Dolore libero, impedit, provident, perferendis rem nisi in quos molestias fugiat voluptates ut, dignissimos quas a. Ipsum nobis, quas et.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt dolore laborum, magnam distinctio amet voluptatibus ducimus explicabo quae corporis! In quam atque at omnis dolore tempore eligendi saepe consectetur reiciendis.</p>
      </div>
      
  </div>
</article>
            
          
!

CSS

            
              html { font-family: 'Raleway', sans-serif; font-weight: 300; }
img { height: auto; max-width: 100%; width: 100%; }

.article-image--main {
  float: left;
  width: 58%;
      position: relative;
    &:after {
      content: '';
      border: 4px solid rgba(white, 0.6);
      height: 90%;
      position: absolute;
      width: 92%;
      left: 4%;
      top: 4.5%;
    }
  img {

  }
}
.article-prose {
  float: right;
  margin-top: 2em;
  width: 42%;
  h1, .precis, .meta {
    margin: 0 auto;
    width: 80%;
  }
  h1 {
    font-family: 'Abril Fatface', cursive;
    font-size: 4em;
    line-height: 1.1;
    margin-bottom: 1em;
  }
  .precis {
    font-family: 'Martel', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 2em;
    line-height: 1.2;
    margin-bottom: 1em;
  }
  .meta {
    font-size: .875em;
    line-height: 1.4;
    span {
      font-weight: 800;
      text-transform: uppercase;
      margin-right: .5em;
    }
  }
}

.article-details {
  border-bottom: 2px solid #888;
  margin-bottom: 3em;
  padding-bottom: 2em;
}

.category {
  background: yellow;
  display: inline-block;
  font-size: .875em;
  font-weight: 800;
  line-height: 3;
  margin: 0 0 8em;
  text-align: center;
  text-transform: uppercase;
  width: 50%;
}

.article {
  margin-left: 10%;
  width: 60%;
  p {
    font-size: 1em;
    line-height: 1.4;
    margin-bottom: 0;
  }
  p span {
    font-family: 'Abril Fatface', cursive;
    font-size: 3.5em;
    font-weight: bold;
    float: left;
    margin: 0;
    line-height: 42px;
    position: relative;
    top: .1em;
    padding-left: .1em;
    padding-right: .1em;
  }
}
.more-article {
  clear: both;
  width: 100%;
}
.article__image--full {
  clear: both;
  float: left;
  width: 100%;
  margin-bottom: 4em;
}

.more-prose {
  clear: both;
  margin: 0 auto;
  width: 70%;
  columns: 500px;
  column-gap: 4em;
  p {
    margin-top: 0;
    margin-bottom: .5em;
    vertical-align: top;
      break-inside: avoid;
  }
}
.more-more-prose {
  margin: 3em auto;
  width: 70%;
  img {
    float: left;
    width: 46.5%;
    margin-right: 3.5%;
  }
  p {
    float: left;
    margin-left: 3.5%;
    width: 46.5%;
    vertical-align: top;
  }
}

.more-more-more-prose {
  padding-top: 3em;
  clear: both;
  margin: 3em auto;
  width: 70%;
  img {
    float: right;
    width: 46.5%;
    margin-left: 3.5%;
  }
  p {
    float: left;
    margin-right: 3.5%;
    width: 46.5%;
    vertical-align: top;
  }
}
            
          
!

JS

            
              // A work in progress

// yeah, it uses floats
// yeah, I'm not happy with the source order
// yeah, the fonts need sorting
// yeah, responsive web design
// yeah, yeah, yeah

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console