cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

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

Code Indentation

     

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.

            
              <div class="wrapper">
<div class="left-container">
  <h1 class="heading">Duis quis</h1>
  <span class="separator">~</span>
  <p class="intro">Maecenas tristique nisl purus, id auctor dui molestie lobortis. Phasellus ultrices risus purus, non vehicula nisi auctor a. Cras quam risus, pellentesque eu tincidunt maximus, porttitor imperdiet purus. Nam id urna in ex interdum malesuada. Duis maximus
    sodales auctor. Phasellus volutpat imperdiet porttitor.</p>
</div>
<div class="right-container">
  <div class="meta">
    <p>
    <span>Lacus -</span>
    <span>Ultricies posuere</span>
    </p>
    <p>
    <span>Nunc -</span>
    <span>Erat varius</span>
    </p>
  </div>
  <div class="featured-image">
  <img src="http://images.clipartpanda.com/guitar-outline-clipart-black-and-white-silhouette-of-man-and-guitar-hi.png" alt="" />
    </div>
  <div class="content">
    <p>C<small class="lead">ras neque</small> lacus, mollis eu hendrerit interdum, auctor quis enim. Mauris in consectetur eros, a fermentum ante. Curabitur ultrices ultrices tristique. Nam porttitor eros sit amet semper porta. Sed vehicula efficitur elit. Proin elementum ipsum urna, at dictum dui commodo at. Proin rhoncus, nisi nec maximus hendrerit, risus nulla vulputate eros, eu finibus justo massa at turpis. Praesent nec orci sagittis, gravida quam et, facilisis lectus. Nulla id tempor quam, ut consequat purus. Morbi tristique tempus diam, vulputate mollis dolor eleifend ut. Aliquam eget nisl ipsum. Phasellus nec arcu nunc. Ut tempus nibh ante. Vestibulum sed tempus libero. Phasellus nec justo risus. Duis felis felis, sodales quis mauris vitae, tincidunt faucibus ipsum. Nulla placerat libero eget magna interdum, id auctor velit fringilla. Quisque vel turpis imperdiet, pharetra ex a, rhoncus felis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent quis dolor in tellus vehicula pulvinar.</p> 
    <p class="indent">Vivamus fringilla turpis risus, vitae tempus neque tristique et. Vestibulum sit amet lorem mi. Nullam condimentum lorem a felis lacinia feugiat. Nam ultricies vitae nulla eget mattis. Sed vehicula quam vel magna iaculis, auctor imperdiet ligula sodales. Suspendisse dignissim nisi sed turpis fermentum, et scelerisque lectus auctor. Donec commodo ipsum quis placerat consequat. Etiam congue bibendum accumsan. Suspendisse finibus, elit quis luctus posuere, sem felis sollicitudin eros, id sagittis quam libero vel arcu.</p>
  </div>
  <p class="pagination">38</p>
</div>
  </div>
            
          
!
            
              $sans-serif: 'Roboto', sans-serif;
$serif: 'Lora', serif;

.left-container {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10% 5%;
}

.right-container {
  background-color: #ECE8E3;
  padding: 10% 5%;
}

@media (min-width: 768px) {
  .wrapper {
    display: flex;
  }
  .left-container {
    width: calc(50% - 12%);
    flex: 1;
    padding: 12% 6% 0 6%;
  }
  .right-container {
    flex: 1;
    width: calc(50% - 12%); 
    padding: 2% 7% 2% 5%;
  }
  .content {
    column-count: 2;
    column-gap: 1.5em;
  }
}

.heading {
  font-size: 3.5em;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.separator {
  display: block;
  font-size: 2.3em;
  margin-bottom: 25px;
}

.intro {
  line-height: 1.3;
  font-size: 1.15em;
  font-family: $serif;
  font-style: italic;
  font-weight: 200;
  color: #ECE8E3;
}

.meta {
  color: #757575;
  text-transform: uppercase;
  font-family: $sans-serif;
  font-size: 0.8em;
  p {
    margin-top: 0;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  span {
    margin: 0;
    padding: 0;
    display: block;
  }
}

.featured-image {
  text-align: right;
  padding-top: 10%;
  img {
    width: 230px;
  }
}

.content {
  margin-top: 10px;
  font-family: $serif;
  font-size: 0.9em;
  text-align: justify;
  p {
    margin-top: 0;
    margin-bottom: 0;
  }
  &:first-letter {
    font-size: 3.8em;
    font-weight: bold;
    float: left;
    margin: -8px 3px;
    padding: 0;
  }
}

.lead {
  text-transform: uppercase;
  font-weight: bold;
}

.indent {
  margin-top: 0;
  text-indent: 3em;
}

.pagination {
  margin-top: 20px;
  margin-bottom: 0;
  padding-left: 30%;
  font-size: 0.8em;
}
            
          
!
999px
Loading ..................

Console