Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <main id="main" class="content">
  <div id="img-div">
    <figure>
      <a href="https://www.flickr.com/photos/poetarchitecture/26806373786/in/photostream/" target="_blank">
        <img id="image" src="https://c1.staticflickr.com/8/7157/26806373786_03b16622c5_b.jpg"
          alt="Geodesic dome by Buckminster Fuller. United States pavilion for Expo 67, Montréal." />
      </a>
      <figcaption id="img-caption"><strong>Geodesic dome</strong> by Buckminster Fuller.
        United States pavilion for Expo 67, Montréal. Photo in public domain:
        <a href="https://www.flickr.com/photos/poetarchitecture/26806373786/in/photostream/" target="_blank">POET ARCHITECTURE on Flickr</a>.
      </figcaption>
    </figure>
  </div>
  <div class="text">
    <h1 id="title">Richard Buckminster Fuller</h1>
    <figure class="inset">
      <a href="https://www.flickr.com/photos/poetarchitecture/26773247691/in/album-72157665615758814/" target="_blank">
        <img src="https://c1.staticflickr.com/8/7057/26773247691_c11322e19f_b.jpg"
          alt="Buckminster Fuller at his Black Mountain College studio with models of geodesic domes, 1949." />
      </a>
      <figcaption><strong>Buckminster Fuller</strong>
        at his Black Mountain College studio with models of geodesic domes, 1949.
        Photo in public domain:
        <a href="https://www.flickr.com/photos/poetarchitecture/26773247691/in/album-72157665615758814/" target="_blank">POET ARCHITECTURE on Flickr</a>.
      </figcaption>
    </figure>
    <div id="tribute-info">
      <p>R. Buckminster Fuller was a renowned 20th century inventor and visionary born in Milton,
        Massachusetts on July 12, 1895. Dedicating his life to making the world work for all of humanity,
        Fuller operated as a practical philosopher who demonstrated his ideas as inventions
        that he called “artifacts.” Fuller did not limit himself to one field but worked as
        a 'comprehensive anticipatory design scientist' to solve global problems surrounding
        housing, shelter, transportation, education, energy, ecological destruction, and poverty.</p>
      <p>Throughout the course of his life Fuller held 28 patents, authored 28 books,
        received 47 honorary degrees. And while his most well know artifact, the geodesic dome,
        has been produced over 300,000 times worldwide, Fuller's true impact on the world today
        can be found in his continued influence upon generations of designers, architects,
        scientists and artists working to create a more sustainable planet.</p>
      <aside class="references">
        <h3>References</h3>
        <p><a id="tribute-link" href="https://www.bfi.org/about-fuller" target="_blank">About Fuller</a>
          at the Buckminster Fuller Institute.</p>
        <p><a href="https://en.wikipedia.org/wiki/Buckminster_Fuller">Buckminster Fuller</a>
          on Wikipedia.</p>
      </aside>
    </div>
  </div>
</main>

              
            
!

CSS

              
                body {
  font: 1rem/1.5rem 'Open Sans', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  background: #ffffff url('https://source.unsplash.com/ypVM8PnygUo/1920x1280') no-repeat center center;
  background-color: rgba(255, 255, 255, 0.80);
  background-blend-mode: color;
  background-size: cover;
}

a:active,
a:visited,
a:link {
  text-decoration: none;
  color: #00f;
}
a:hover {
  color: #000;
}

h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 2em;
  line-height: 1.3em;
  color: #131313;
  margin-bottom: 21px;
}

figure {
  margin: 0;
}

figcaption {
  font-size: .7rem;
  line-height: 1.3rem;
  padding: .5rem 0;
}

#image {
  width: 100%;
  max-width: 100%;
  display: block;
}

#img-caption {
  padding: .5rem 1rem;
}

.inset img {
  width: 100%;
}

.content {
  padding: 0;
  margin: 0;
  background: #fff;
  border-bottom: 12px solid #131313;
}

.text {
  padding: 10px 50px 30px;
  box-sizing: border-box;
}

h3 {
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-top: 2em;
}

aside p {
  font-size: .9em;
  border-top: 1px solid #eee;
  padding: .5em 0 .6em;
  margin: 0;
}

aside {
  border-bottom: 1px solid #eee;
}

@media (min-width: 800px) {

  h1 {
    font-size: 3em;
  }

  .text h1 {
    margin-top: 0;
  }
  
  figure.inset {
    float: left;
    width: 45%;
    display: inline;
    margin-right: 5%;
    margin-bottom: 10px;
  }

  .content {
    max-width: 800px;
    margin: 100px auto;
    box-shadow: 0 0 10px #888;
  }
  
  .content:after {
    content: "";
    display: table;
    clear: both;
  }

  .text {
    padding: 50px 95px 95px;
  }
  
}

              
            
!

JS

              
                
              
            
!
999px

Console