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="flexbox">
  <article class="japanese">
    <h1>平家物語</h1>
    <p>
      祇園精舎の鐘の声、諸行無常の響きあり。沙羅双樹の花の色、盛者必衰の理をあらはす。おごれる人も久しからず。ただ春の夜の夢のごとし。たけき者も遂にはほろびぬ、ひとへに風の前の塵に同じ。
    </p>
    <img src="http://placehold.it/300x200" alt="" />
  </article>
  <article class="english">
    <h1>The Tale of the Heike</h1>
    <p>
      The sound of the Gion Shōja bells echoes the impermanence of all things; the color of the sāla flowers reveals the truth that the prosperous must decline. The proud do not endure, they are like a dream on a spring night; the mighty fall at last, they are as dust before the wind.
    </p>
    <img src="http://placehold.it/300x200" alt="" />
  </article>
</div>
            
          
!
            
              .japanese {
  background: #000599;
}
.english {
  background: #006999;
}
.japanese,
.english {
  color: rgba(255,255,255,.4);
  padding: 2%;
  text-align: center;
}
p {
  text-align: left;
}
img {
  max-width: 100%;
  height: auto;
}

@media ( min-width : 600px ){
  body {
    background: linear-gradient(90deg, #000599 50%, #006999 50%);
  }
	.flexbox {
    width: 700px;
    margin: 0 auto;
    display: -webkit-flex;
    display: flex;
	}
  .japanese,
  .english {
    -webkit-flex: 1;
    flex: 1;
    background: none;
  }
}
            
          
!
999px
Loading ..................

Console