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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

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.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div id="container">
<div id="leftcol">
<p><img src="" alt="Photograph of a Buddhist monk in front of kabuki theatre, Kyoto">Kyoto, located near the center of the island of Honshu, was Japan’s imperial capital for almost 1,000 years before the throne moved to Edo (today, Tokyo). The city continues to be Japan’s cultural centre, best known for its gardens, traditional architecture, and university. Historically, Kyoto was known as <i>“The City of Ten Thousand Shrines”</i>.
<p>Today, Kyoto is home to 1.5 million people. It is also known as the home of the Nintendo game company, which has its headquarters in the city.
<p>Kyoto was largely spared from the physical destruction of WWII. It was removed from its place at the top of the target list for the atomic bomb by the intervention of the US Secretary of War Henry L. Stimson, who had honeymooned there.
<div id="rightcol">
<p>As a result, many of Kyoto's preserved locations are UNESCO World Heritage Sites, including <i>Kiyomizu-dera</i>, a magnificent temple mounted on wooden pillars on the side of a mountain, and <i>Ryōan-ji</i> temple, famous for its rock garden. Tourism is a very important facet of Kyoto's income, especially the visitors drawn to the city by annual cultural events, many of which have been celebrated for more than a millennium.  The other traditional industry in Kyoto is the production of <i>sake</i>.
<p>Kyoto is located in Yamashiro valley, high in the Tamba mountain range. The city's geographical location results in humid summers and cold winters, with occassional snowfall.


                body {
  font-family: Avenir, Arial, sans-serif;
div#container { 
  display: table; 
  width: 80%;
  margin: 0 auto;
  max-width: 900px;
  line-height: 1.5;
div#container img {
  width: 55%;
  height: auto;
  margin-right: -20%;
  margin-left: 20px;
  float: right;
  margin-bottom: 20px;
div#leftcol, div#rightcol { display: table-cell; padding: 1em; }
div#leftcol { width: 50%; }
div#rightcol { width: 40%; }
div#rightcol:before { 
  content: " "; 
  float: left; 
  width: 25%;
  padding-top: 102%;
div#rightcol p:first-child {
  margin-bottom: 2rem;
@media all and (max-width: 800px) {
  div#container { width: 90%; }
@media all and (max-width: 600px) {
  div#leftcol, div#rightcol { display: table-row; }
  div#rightcol:before { content: none; }
  div#container img {
    margin-right: 0;
  div#rightcol p:first-child {
  margin-top: 0;
  margin-bottom: 1rem;