Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="parent-chart">
<div class="level lev-one top-level">
  <div class="position">
<img src="http://lti-tas.bonzoheads.com/wp-content/uploads/2018/04/members-12.png"><br>
<strong>John Fowle</strong><br>
CEO
</div>  
</div>
<div class="flow-chart">
<div class="level lev-two last-lev">
     <div class="position">
<img src="http://lti-tas.bonzoheads.com/wp-content/uploads/2018/04/members-13.png"><br>
<strong>David Bendle</strong><br>
COO
</div><!--
--><div class="position">
<img src="http://lti-tas.bonzoheads.com/wp-content/uploads/2018/04/members-17.png"><br>
<strong>Ed Lines</strong><br>
Underwriter - Syndicate 1084
</div><!--
--><div class="position">
<img src="http://lti-tas.bonzoheads.com/wp-content/uploads/2018/04/members-14.png"><br>
<strong>Rob Callan</strong><br>
CFO
</div><!--
--><div class="position">
<img src="http://lti-tas.bonzoheads.com/wp-content/uploads/2018/04/members-18.png"><br>
<strong>Michael Dawson</strong><br>
Underwriter - Syndicate 1176
</div><!--
--><div class="position">
<img src="http://lti-tas.bonzoheads.com/wp-content/uploads/2018/04/members-15.png"><br>
<strong>Penny Shaw</strong><br>
Chief Risk Officer
</div><!--
--><div class="position">
<img src="http://lti-tas.bonzoheads.com/wp-content/uploads/2018/04/members-19.png"><br>
<strong>Tony Gates</strong><br>
Head of Claims
</div><!--
--><div class="position">
<img src="http://lti-tas.bonzoheads.com/wp-content/uploads/2018/04/members-16.png"><br>
<strong>Robert</strong><br>
CIO
</div>
</div>

</div>
</div>
              
            
!

CSS

              
                body {
background-color:#0c0c0c;  

}

/* flow chart css */ 


.position {
  text-align:center;
  color:#fff;
  line-height:22px;
  padding-top:10px;
   padding-bottom:10px;
}
@media (max-width:767px) {
  
 .level {
  
  text-align:center;
}
.level.lev-one.top-level {
    margin-bottom: 70px;
}
  
  .position {
  display:block ;
 background-color: rgba(255, 255, 255, 0.33);

  max-width:200px;

  }
 .lev-two .position {
   margin-left:100px;
margin-bottom: 50px;
    position:relative;
 
}

  .lev-two .position:before {
    position:absolute;
    content:"";
    width:50px;
    height:calc(100% + 50px);
    border-bottom:1px solid #f2f2f2;
    border-left:1px solid #f2f2f2;
    left:-50px;
    bottom:50%;
  }

  .lev-two .position:first-child:before {
    height:100%;
    
    
  } 
  
}



@media (min-width:768px) {

.level {
  
  text-align:center;


}
.top-level {
    margin-bottom: 100px;
}
.position {
  display:inline-block;

width: calc(14.28% + 40px);

  vertical-align:top;
  position:relative;
}

.lev-two .position:nth-child(even) {

margin-top:130px;
  
}

.lev-two .position:nth-child(even):before {
    content: "";
    position: absolute;
    height: 180px;
    border-left: 1px solid #f2f2f2;
    top: -180px;
  
}


.lev-two .position {
  margin-left:-20px;
  margin-right:-20px;
}



.lev-two .position:before {
    content: "";
    position: absolute;
    height: 50px;
    border-left: 1px solid #f2f2f2;
    top: -50px;
    width: calc(100% - 40px);
    border-top: 1px solid #f2f2f2;
    left:50%
}

.lev-two .position:nth-last-child(1):before {
    content: "";
    position: absolute;
    height: 50px;
    border-left: 1px solid #f2f2f2;
    top: -50px;
    width: calc(100% - 20px);
    border-top: none;
}



.flow-chart {
    position: relative;
  
}

.top-level .position:after {
  content: "";
    position: absolute;
    height: 50px;
    border-left: 1px solid #f2f2f2;
    bottom: -50px; 
    width: calc(100% - 40px);
    left: 50%;

  
}
}

              
            
!

JS

              
                
              
            
!
999px

Console