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

            
              <!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
  <meta charset="utf-8">
  <title></title>
</head>
<main>

  <body>

    <div class="bioContainer center">
      <h2>Meet The Team</h2>

      <img onclick="biopicker('first');" class="bioThumbnail" src="https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2468&q=80" alt="portrait of a man">
      <img class="bioThumbnail" onclick="biopicker('second');" src="https://images.unsplash.com/photo-1532910404247-7ee9488d7292?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=582&q=80" alt="portrait of a woman">
    </div>

</main>
<div class="fullbio" id="firstBio">
  <img class="bioImg" src="https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2468&q=80" alt="potrait of a second woman">
  <p class="bioText">
    Integer tempus, ipsum id cursus laoreet, ligula arcu vestibulum nisi, sit amet interdum mi magna vel leo. Donec non augue sed nisi iaculis mollis. Nunc id tristique ex. Sed turpis neque, feugiat id orci id, faucibus dignissim felis. Nulla malesuada velit
    ipsum, sed eleifend turpis vulputate sit amet. Proin ultricies, ante eu viverra suscipit, tellus libero malesuada diam, eu pharetra tortor odio et eros. Vestibulum iaculis laoreet ante, nec vehicula tellus convallis id. Suspendisse porttitor at nibh
    eu pulvinar. Ut iaculis lobortis odio et fermentum. Nunc tincidunt eget nunc vel venenatis. Donec vestibulum nibh in aliquet suscipit. Mauris malesuada turpis ex, ac efficitur erat scelerisque id. Mauris sed purus nec urna scelerisque maximus. Vestibulum
    ac fermentum nunc.
  </p>
</div>
<div class="fullbio" id="secondBio">
  <img class="bioImg" src="https://images.unsplash.com/photo-1532910404247-7ee9488d7292?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=582&q=80" alt="portrait of a man">
  <p class="bioText">
    Integer tempus, ipsum id cursus laoreet, ligula arcu vestibulum nisi, sit amet interdum mi magna vel leo. Donec non augue sed nisi iaculis mollis. Nunc id tristique ex. Sed turpis neque, feugiat id orci id, faucibus dignissim felis. Nulla malesuada velit
    ipsum, sed eleifend turpis vulputate sit amet. Proin ultricies, ante eu viverra suscipit, tellus libero malesuada diam, eu pharetra tortor odio et eros. Vestibulum iaculis laoreet ante, nec vehicula tellus convallis id. Suspendisse porttitor at nibh
    eu pulvinar. Ut iaculis lobortis odio et fermentum. Nunc tincidunt eget nunc vel venenatis. Donec vestibulum nibh in aliquet suscipit. Mauris malesuada turpis ex, ac efficitur erat scelerisque id. Mauris sed purus nec urna scelerisque maximus. Vestibulum
    ac fermentum nunc. Nam venenatis at quam vel rutrum. Suspendisse lacinia ligula eget placerat pellentesque. Quisque accumsan facilisis molestie. Nam vestibulum sapien gravida ipsum commodo mattis. Morbi sagittis dictum ipsum, ut consequat justo rutrum
    nec. In hac habitasse platea dictumst. Donec ac hendrerit enim. Cras sed leo scelerisque, porta sem vel, ornare quam. Ut at nibh nec eros posuere euismod. Proin dapibus urna at venenatis dignissim. Aenean mollis nunc in justo fringilla pulvinar. Sed
    dignissim neque at lectus volutpat, maximus feugiat nisi viverra. Mauris eros nisi, sagittis eu blandit vel, feugiat in ante. In sit amet justo odio. In molestie rhoncus augue, et suscipit turpis auctor vel. Curabitur sollicitudin eget dolor sed posuere.
    Etiam ut viverra nisl, tempus sagittis risus. Etiam vel nibh fermentum, aliquet felis nec, vestibulum ex. Praesent rutrum ipsum vel lorem tincidunt, eget tristique risus auctor. Cras facilisis dolor eget pellentesque viverra. Sed mollis libero a tortor
    suscipit vehicula. Integer egestas, magna nec aliquet placerat, lorem turpis dapibus elit, sit amet sodales mi nisl non sem.
  </p>
 
  </body>

</html>
            
          
!

CSS

            
              .bioContainer{
  display:flex;
  justify-content:center; 
}

.bioThumbnail{
  border-radius: 50px;
  width: auto;
  height: 10em;
  flex-direction:row;
  margin: 5px; 
  cursor: pointer;
}

.fullbio{
  display:flex;
  flex-direction:row;
}
.bioImg{
  width:auto;
  height:50em;
  margin:5px;

}

            
          
!

JS

            
              function biopicker(myBio) {
	switch (myBio)
	{
	case "first":
    $("#firstBio").toggle(1000);
		break;
	case "second":
    $("#secondBio").toggle(1000);
		break;
	}
}

            
          
!
999px

Console