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 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

Packages

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.

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.

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.

HTML

              
                <base href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/">
<div class="student-profiles">
<figure>
  <h3>Jessica Herzog</h3>
  <a href=http://jessicaherzog.com><img src="jessica-herzog-profile.jpg" alt></a>
  <a href=http://jessicaherzog.com><img src="jessica-herzog-site.jpg" alt></a>
  <figcaption>
    <p>Jessica specializes in website and app design. While studying in the NMPD program she also successfully completed a Bachelor of Communications Studies degree at the University of Calgary.</p>
    <a href=http://jessicaherzog.com>Portfolio</a>
  </figcaption>
</figure>
<figure>
   <h3>Becca Gould</h3>
  <a href=http://iambeccagould.com><img src="becca-gould-profile.jpg" alt></a>
  <a href=http://iambeccagould.com><img src="becca-gould-site.jpg" alt></a>
  <figcaption>
    <p>When she's not building websites and apps (assisted by her background in Computer Science), Becca is also a competitive runner in cross country and indoor track events across Canada.</p>
      <a href=http://iambeccagould.com>Portfolio</a>
   </figcaption>
</figure>
<figure>
  <h3>Vince Raquel</h3>
  <a href=http://vinceraquel.com><img src="vince-raquel-profile.jpg" alt></a>
  <a href=http://vinceraquel.com><img src="vince-raquel-site.jpg" alt></a>
  <figcaption>
    <p>Vince Raquel was born and raised in Montreal, Quebec and is bilingual in English and French. He is a web developer and videographer.</p>
    <a href=http://vinceraquel.com>Portfolio</a>
  </figcaption>
</figure>
<figure>
  <h3>Kristian Vassilev</h3>
  <a href=http://lubanskymedia.com><img src="kristian-vassilev-profile.jpg" alt></a>
  <a href=http://lubanskymedia.com><img src="kristian-vassilev-site.jpg" alt></a>
  <figcaption>
    <p>Originally from Bulgaria, Kristian's passion for video production brought him to Calgary, where he discovered a passion for coding.</p>
    <a href=http://lubanskymedia.com>Portfolio</a>
  </figcaption>
</figure>
  <figure>
    <h3>Evan Newman</h3>
  <a href=http://evannewmandesign.com><img src="evan-newman-profile.jpg" alt></a>
  <a href=http://evannewmandesign.com><img src="evan-newman-site.jpg" alt></a>
  <figcaption>
    <p>Evan is a designer driven to create work that carries a lasting emotional impact and reflects his diverse interests.</p>
      <a href=http://evannewmandesign.com>Portfolio</a>
  </figcaption>
</figure>
   <figure>
     <h3>Myles Malloy</h3>
  <a href=http://mylesmalloy.com><img src="myles-malloy-profile.jpg" alt></a>
  <a href=http://mylesmalloy.com><img src="myles-malloy-site.png" alt></a>
  <figcaption>
    <p>Myles is passionate about music and art, interests reflected in the many projects he has created and collaborated in.</p>
    <a href=http://mylesmalloy.com>Portfolio</a>
  </figcaption>
</figure>
</div>



              
            
!

CSS

              
                * { box-sizing: border-box; }
body { 
  font-family: Avenir, sans-serif;
}
div.student-profiles { 
  width: 80%;
  margin: 0 auto;
  max-width: 1000px;
}
div.student-profiles figure:nth-child(odd) { 
  float: left;
  clear: left;
}
div.student-profiles figure:nth-child(even) { 
  float: right;
}
div.student-profiles figure { 
  text-align: center;
  width: 45%;
  margin: 0;
  margin-bottom: 5%;
}
div.student-profiles figure * {
    display: block; 
}
div.student-profiles figure a img { 
  width: 100%;
  height: auto;
}
div.student-profiles figure a:first-of-type {
  width: 50%;
  margin-bottom: -30px;
  margin-left: 25%;
  position: relative;
  z-index: 2;
}
figure a:first-of-type img {
  border-radius: 50%;
  box-shadow: 0px 10px 13px rgba(0,0,0,0.3);
}
figure figcaption a {
  display: block;
  color: #666;
  border: 1px solid #666;
  text-decoration: none;
  text-transform: uppercase;
  padding: 5px 0;
  margin: 15px 0;
  border-radius: 2px;
  font-size: .8rem;
  width: 12rem;
  transition: .3s;
}
figure a:last-of-type:hover {
  background: #333;
  color: #fff;
}
figure p { text-align: left; }

@media all and (max-width: 800px) {
div.student-profiles { 
  width: 90%;
  }
}
@media all and (max-width: 600px) {
  div.student-profiles figure {
    float: none;
    width: 100%;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console