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.

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="container">
<div class="row timeline">
  <div class="timeline-bar"></div>
  <div class="col-sm-6 timeline-left">
  <div class="timeline-container">
    <div class="timeline-circle"><i class="fa fa-code" aria-hidden="true"></i></div>
    <div class="timeline-arrow"></div>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A ad suscipit deserunt fuga aut corporis officia! Vitae molestias, eligendi cum velit necessitatibus dolorem, repellat inventore perferendis, nostrum reiciendis doloremque quisquam.</p>
    </div>
  </div>
  <div class="col-sm-6 col-sm-offset-6 timeline-right">
  <div class="timeline-container">
    <div class="timeline-circle"><i class="fa fa-code" aria-hidden="true"></i></div>
    <div class="timeline-arrow"></div>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quisquam, accusamus perspiciatis quo repellat tempora corporis fuga, delectus facere nisi enim in iusto inventore veritatis optio debitis deleniti commodi asperiores. Consequatur.</p>
    </div>
  </div>
  </div>
  <div class="row timeline">
  <div class="timeline-bar"></div>
  <div class="col-sm-6 timeline-left">
  <div class="timeline-container">
    <div class="timeline-circle"><i class="fa fa-code" aria-hidden="true"></i></div>
    <div class="timeline-arrow"></div>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A ad suscipit deserunt fuga aut corporis officia! Vitae molestias, eligendi cum velit necessitatibus dolorem, repellat inventore perferendis, nostrum reiciendis doloremque quisquam.</p>
    </div>
  </div>
  <div class="col-sm-6 col-sm-offset-6 timeline-right">
  <div class="timeline-container">
    <div class="timeline-circle"><i class="fa fa-code" aria-hidden="true"></i></div>
    <div class="timeline-arrow"></div>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quisquam, accusamus perspiciatis quo repellat tempora corporis fuga, delectus facere nisi enim in iusto inventore veritatis optio debitis deleniti commodi asperiores. Consequatur.</p>
    </div>
  </div>
  </div>
</div>
              
            
!

CSS

              
                $bg_cl: #C5E1A5
$txt_col: #689F38
$bgl_c: #DCEDC8

body
  background: $bgl_c

.timeline
  color: $txt_col
  min-height: 80vh
  margin: 20px 0
  .timeline-container
    position: relative
    background: $bg_cl
    padding: 1em
    margin: 50px 30px 0 30px
    text-align: justify
  .timeline-bar
    position: absolute
    left: 49.6%
    height: 100%
    border-right: 5px solid $txt_col
    margin-bottom: 20px
  .timeline-arrow
    position: absolute
    left: 100%
    top: 50%
    &:after, &:before
    left: 100%
    border: solid transparent
    content: " "
    height: 0
    width: 0
    position: absolute
    pointer-event: none
    &:after
    border-color: rgba(255, 255, 255, 0)
    border-left-color: $bg_cl
    border-width: 12px
    margin-top: -12px
    &:before
    border-color: rgba(0, 0, 0, 0)
    border-left-color: $bg_cl
    border-width: 13px
    margin-top: -13px
    
.timeline-right .timeline-arrow
  left: 0
  &:after
  border-color: rgba(255, 255, 255, 0)
  border-right-color: $bg_cl
  margin-left: -20px
  &:before
  border-color: rgba(255, 255, 255, 0)
  border-right-color: $bg_cl
  margin-left: -26px
  
.timeline-circle
  position: absolute
  right: -66px
  top: 39%
  .fa-code
    padding: 0.5em
    border: 1px solid $txt_col
    border-radius: 50%
    background: $txt_col
    color: #fff
    font-size: 1.5em
    font-weight: 700
.timeline-right .timeline-container .timeline-circle
  left: -69px
              
            
!

JS

              
                
              
            
!
999px

Console