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.

            
              <!--Flexbox brick quotes. Stack on mobile, equal vertical heights on desktop -->

<div class="flex-quotes">
    <div class="col col-image" style="background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/280406/seattle-botanical-gardens.jpg);">
        &nbsp;
    </div>

    <div class="col col-text">
        <p>&ldquo;I've learned that people will forget what you said, people will forget what you did, but people will never forget how you made them feel.&rdquo;
            <cite>- Maya Angelou</cite>
        </p>
    </div>
</div>


<div class="flex-quotes">
    <div class="col col-image" style="background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/280406/seattle-library-sm.jpg);">
        &nbsp;
    </div>
    <div class="col col-text col-left">
        <p>&ldquo;Simple is good.&rdquo;
            <cite>- Jim Henson</cite>
        </p>
    </div>
</div>


<div class="flex-quotes">
    <div class="col col-image" style="background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/280406/seattle-skylight-sm.jpg);">
        &nbsp;
    </div>
    <div class="col col-text">
        <p>&ldquo;Everybody has a plan until they get punched in the mouth.&rdquo;
            <cite>- Mike Tyson</cite>
        </p>
    </div>
</div>


<div class="flex-quotes">
    <div class="col col-image" style="background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/280406/madison-overture.jpg);">
        &nbsp;
    </div>
    <div class="col col-text col-left">
        <p>&ldquo;We are what we pretend to be, so we must be careful about what we pretend to be&rdquo;
            <cite>- Kurt Vonnegut, Jr.</cite>
        </p>
    </div>
</div>


<div class="flex-quotes">
    <div class="col col-image" style="background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/280406/madison-rainbow.jpg);">
        &nbsp;
    </div>
    <div class="col col-text">
        <p>&ldquo;Perfect is the enemy of good.&rdquo;
            <cite> - Voltaire</cite>
        </p>
    </div>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Merriweather:400,700italic,700,400italic);

$bg-color: #333;
$text-color: #FFF;
$border-color: #FFF;
$color-primary: #458599;

body {
	background-color: $bg-color;
	color: $text-color;
	font-family: 'Merriweather', serif;
	font-size: 1.2em;
	line-height: 1.5em;
	letter-spacing: 1px;
}

cite {
	font-weight: 700;
}

.col-text {
	background-color: $color-primary;
}

.flex-quotes {
	display: flex;
	flex-grow: 1;
	border-bottom: 4px solid $border-color;
}
.col {
	flex: 1
}

.col-text {
	flex: 1.5;
	@media (min-width: 640px){
		border-left: 4px solid $border-color;
	}
}

.col-left {
	order: -1; 
	@media (min-width: 640px){
		border-left: none;
		border-right: 4px solid $border-color;
	}
}

.col-text p {
	padding: 2em;
	margin: 0;
}

.col-image {
	display: none;
	@media (min-width: 640px){
		display: flex;
		background-size: cover;
	}
}

            
          
!
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