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

Quick-add: + add another resource

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.

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="support-warning">
    This demo requires CSS Grid. The current browser you're using doesn't support it and is using a Flexbox fallback. Find a <a href="https://igalia.github.io/css-grid-layout/enable.html">grid-enabled browser</a>.
</div>
<div class="l-grid l-grid--2-col l-grid--gutter-large l-full-height">
     <div class="l-grid__item align-bottom l-grid l-column-start-3">
          <div class="content">
          <h2 class="heading">The Valley of Fear</h2>
          <p class="description">When McMurdo awoke next morning he had good reason to remember his initiation into the lodge. His head ached with the effect of the drink, and his arm, where he had been branded, was hot and swollen. Having his own peculiar source of income, he was irregular in his attendance at his work; so he had a late breakfast, and remained at home for the morning writing a long letter to a friend.</p>
          </div>
     </div>
      <div class="l-grid__item">
          <div class="content">
          <p class="description">It was a short account of the facts with which he was himself more familiar than the writer could have been. It ended with the statement: “The matter is now in the hands of the police; but it can hardly be hoped that their exertions will be attended by any better results than in the past. Some of the men were recognized, and there is hope that a conviction may be obtained. The source of the outrage was, it need hardly be said, that infamous society which has held this community in bondage for so long a period, and against which the Herald has taken so uncompromising a stand. </p>
          </div>
     </div>
      <div class="l-grid__item l-column-start-2">
          <div class="content">
          <p class="description">Below it stated that a guard of police, armed with Winchester rifles, had been requisitioned for the defense of the office.
McMurdo had laid down the paper, and was lighting his pipe with a hand which was shaky from the excesses of the previous evening, when there was a knock outside, and his landlady brought to him a note which had just been handed in by a lad. It was unsigned, and ran thus: I should wish to speak to you, but would rather not do so in your house. You will find me beside the flagstaff upon Miller Hill. If you will come there now, I have something which it is important for you to hear and for me to say.</p>
          </div>
     </div>
     <div class="l-grid__item l-column-start-4">
          <div class="content">
          <p class="description">McMurdo read the note twice with the utmost surprise; for he could not imagine what it meant or who was the author of it. Had it been in a feminine hand, he might have imagined that it was the beginning of one of those adventures which had been familiar enough in his past life. But it was the writing of a man, and of a well educated one, too. Finally, after some hesitation, he determined to see the matter through.</p>
          </div>
     </div>
   
   
</div>
            
          
!
            
              * {
     box-sizing: border-box;
}

.support-warning {
     background: #ccb11c;
     color: #000;
     display: block;
     font-family: 'Raleway', sans-serif;
     font-weight: 700;
     opacity: 0.95;
     padding: 3rem;
     position: fixed;
     text-align: center;
     top: 0;
     left: 0;
     width: 100%;
     z-index: 5;
}

.support-warning a {
     color: inherit;
}

body {
     background: #1c1e22;
     color: #fff;
     padding: 3rem;
}

/* fallbacks using flexbox */
.l-grid {
     display: flex;
     flex-wrap: wrap;
}

.l-grid--2-col > .l-grid__item {
     flex: 1 0 auto;
     width: 50%;
     margin-bottom: 4rem;
}

.l-grid--gutter-large {
     margin-left: -2rem;
}

.l-grid--gutter-large > .l-grid__item {
     padding-left: 2rem;
}

@supports(display: grid) {
     .support-warning {
          display: none;
     }
     
     /* Resets of non-grid */
     .l-grid--gutter-large {
          margin: initial;
     }
     
     .l-grid--2-col > .l-grid__item {
          margin-bottom: initial;
          width: initial;
     }
     
     .l-grid--gutter-large > .l-grid__item {
          padding-left: initial;
     }
     
     .l-grid {
         display: grid;
     }    
}

.l-grid--2-col {
     grid-template-columns: 1fr 1fr 1fr 1fr;
     grid-template-rows: 1fr;
}

.l-grid--gutter-large {
     grid-gap: 2rem;  
}

.l-column-start-2 {
     grid-column-start: 2;
}

.l-column-start-3 {
     grid-column-start: 3;
}

.l-column-start-4 {
     grid-column-start: 4;
}

.l-full-height {
     min-height: 100vh;
}

.align-bottom {
     align-items: end;
}

.content {
     padding: 1rem;
}

.heading {
     position: relative;
     font-weight: 700;
     font-size: 2rem;
     margin-bottom: 1rem;
     line-height: 1.3;
     font-family: 'Libre Baskerville', serif;
}

.heading::before {
     content: '';
     position: absolute;
     width: 20%;
     height: 5px;
     top: -16px;
     border-top: 5px solid #fe5c5d;
}

.description {
     font-size: 1rem;
     line-height: 1.55;
     color: #7a7b80;
     font-family: 'Raleway', sans-serif;
}

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

Console