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.

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

Console