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>Lorelei Vanderheide</h3>
  <a href=http://loreleivanderheide.com/><img src="lorelei-vanderheide-profile.jpg" alt></a>
  <a href=http://loreleivanderheide.com><img src="lorelei-vanderheide-site.jpg" alt></a>
  <figcaption>
    <p>Originally from the Okanagan Valley in British Columbia, Lorelei is a designer and photographer who's creative passion has driven her to an career in graphic design, 3D modeling and motion graphics. In her spare time, Lorelei is an avid hiker, lover of the outdoors, and a committed youth volunteer.</p>
    <a href=http://loreleivanderheide.com>Portfolio</a>
  </figcaption>
</figure>
<figure>
  <h3>Jenelle Ball</h3>
  <a href=http://jenelleball.ca><img src="jenelle-ball-profile.jpg" alt></a>
  <a href=http://jenelleball.ca><img src="jenelle-ball-site.jpg" alt></a>
  <figcaption>
    <p>A graphic designer specializing in layout, printmaking, logos, branding, illustrations and icons. When Jenelle is not working, you can find her exploring the wilderness, reading about science or pondering the human condition.</p>
    <a href=http://jenelleball.ca>Portfolio</a>
  </figcaption>
</figure>
<figure>
   <h3>Michael Benz</h3>
  <a href=http://benzphoto.ca><img src="michael-di-benedetto-profile.jpg" alt></a>
  <a href=http://benzphoto.ca><img src="michael-di-benedetto-site.png" alt></a>
  <figcaption>
    <p>An accomplished photographer, Michael also creates branding and designs as a freelancer.</p>
      <a href=http://benzphoto.ca>Portfolio</a>
   </figcaption>
</figure>
<figure>
   <h3>Jesse Holliston</h3>
  <a href=http://www.hollistondesign.com/><img src="jesse-holliston-profile.jpg" alt></a>
  <a href=http://www.hollistondesign.com/><img src="jesse-holliston-site.jpg" alt></a>
  <figcaption>
    <p>Jesse Holliston is an illustrator and graphic designer, with a particular appreciation for beauty in design.</p>
      <a href=http://www.hollistondesign.com/>Portfolio</a>
   </figcaption>
</figure>
<figure>
  <h3>Megan Crandall</h3>
  <a href=http://megan-crandall.com><img src="megan-crandall-profile.jpg" alt></a>
  <a href=http://megan-crandall.com><img src="megan-crandall-site.png" alt></a>
  <figcaption>
    <p>Born and raised in Golden, BC, Megan moved to Calgary to specialize in design and web development. When she isn’t busy with school work, Megan is snapping pictures and drinking tea.</p>
      <a href=http://megan-crandall.com>Portfolio</a>
  </figcaption>
</figure>
   <figure>
     <h3>Mickey Smith</h3>
  <a href=http://mickeysdesigns.com><img src="mickey-smith-profile.jpg" alt></a>
  <a href=http://mickeysdesigns.com><img src="mickey-smith-site.jpg" alt></a>
  <figcaption>
    <p>Mickey was raised in Calgary and specializes in graphic design. Her skills include design, illustration, animation and cinematography. She brings a vintage and retro style with a sleek look.</p>
    <a href=http://mickeysdesigns.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