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="wrapper">
    <div class="timelineBox">
      <div class="timelineHeader">
        <h3>Timeline</h3>
        <span>WORK EXPERIENCE</span>
      </div>
      <div class="timelineBody">
        <ul class="timeline">
          <li>
            <div class="timelineDot"></div>
            <div class="timelineDate">Jun 2015 to Jan 2017</div>
            <div class="timelineWork">On-site Network Support Enginner<small>OmniPrime Marketing, inc.</small></div>
          </li>
          <li>
            <div class="timelineDot"></div>
            <div class="timelineDate">Jan 2014 to May 2015</div>
            <div class="timelineWork">IT Support / Web Designer & Developer<small>IT.Resources Corporation (ITRC)</small></div>
          </li>
          <li>
            <div class="timelineDot"></div>
            <div class="timelineDate">Nov 2012 to Oct 2014</div>
            <div class="timelineWork">OJT Graphic Artist / IT Support<small>Lima Gulf Industrial Trading</small></div>
          </li>
          <li>
            <div class="timelineDot"></div>
            <div class="timelineDate">Oct 2006 to Present</div>
            <div class="timelineWork">Art Direction, Graphic Design, Web Development<small>Independent / Freelance</small></div>
          </li>

          <li>
            <div class="timelineDot"></div>
            <div class="timelineDate">Jun 2015 to Jan 2017</div>
            <div class="timelineWork">On-site Network Support Enginner<small>OmniPrime Marketing, inc.</small></div>
          </li>
          <li>
            <div class="timelineDot"></div>
            <div class="timelineDate">Jan 2014 to May 2015</div>
            <div class="timelineWork">IT Support / Web Designer & Developer<small>IT.Resources Corporation (ITRC)</small></div>
          </li>
          <li>
            <div class="timelineDot"></div>
            <div class="timelineDate">Nov 2012 to Oct 2014</div>
            <div class="timelineWork">OJT Graphic Artist / IT Support<small>Lima Gulf Industrial Trading</small></div>
          </li>
          <li>
            <div class="timelineDot"></div>
            <div class="timelineDate">Oct 2006 to Present</div>
            <div class="timelineWork">Art Direction, Graphic Design, Web Development<small>Independent / Freelance</small></div>
          </li>
        </ul>
      </div>
    </div>
  </div>

<div class="ajay">
  <a href="https://codepen.io/AjayRawatCodepen/" target="_blank">See more pens</a>
</div>

              
            
!

CSS

              
                *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
$red: #e91e63;
$green: #56cb5f;
html{
  box-sizing: inherit;
  font-family: Lato, sans-serif;
  font-size: 62.5%;
  line-height: 1.5;
}
body{
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: normal;
  line-height: inherit;
  background: #efefef;
}
.wrapper{
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}
.timelineBox{
  width: 350px;
  height: auto;
  overflow: hidden;
  margin: 5rem auto;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.06),
              0 1px 0 rgba(0,0,0,0.02);
  }
  .timelineHeader{
    padding: 3rem 2rem;
    background: $red;
    box-shadow: 0 0 8px rgba(0,0,0,0.5),
              0 4px 0 rgba(0,0,0,0.02);
    position: relative;
    z-index: 3;
    h3{
      font-family: inherit;
      font-size: 2rem;
      letter-spacing: 0.1rem;
      color: #fff;
      font-weight: normal;
      margin: 0;
      + span{
        font-size: 1.2rem;
        letter-spacing: 0.2rem;
        font-weight: normal;
        color: #fff;
      }
    }
  }
.timelineBody{
  max-height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
  .timeline{
    padding: 3rem 2rem !important;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 2;
    &:before{
      content: '';
      position: absolute;
      width: 4px;
      background: #fff;
      top: 0;
      right: auto;
      left: 25px;
      height: 100%;
      z-index: -1;
      box-shadow: 0 0 8px rgba(0,0,0,0.085),
            0 1px 0 rgba(0,0,0,0.02);
    }
    li{
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      margin-bottom: 2rem;
      position: relative;
    }
  .timelineDot{
    height: 1.5rem;
    width: 1.5rem;
    background: #fff;
    border-radius: 2rem;
    flex: 0 0 1.5rem;
    margin-right: auto;
    margin-top: 6px;
    box-shadow: 0 0 8px $green;
    &::after{
      content: '';
      position: absolute;
      top: 9px;
      left: 3px;
      height: 9px;
      width: 9px;
      background: $green;
      border-radius: 50%;
    }
  }
  .timelineDate{
    font-size: 1.2rem;
    flex: 0 0 80px;
    padding: 0.2rem;
  }
  .timelineWork{
    font-family: inherit;
    font-size: 1.4rem;
    margin-left: auto;
    flex: 0 0 170px;
      small{
        display: block;
        color: #bdbdbd;
      }
    }
  }
}
.timelineBody::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}

.timelineBody::-webkit-scrollbar
{
	width: 6px;
	background-color: #F5F5F5;
}

.timelineBody::-webkit-scrollbar-thumb
{
	background-color: $red;
}

.ajay{
  font-family: sans-serif;
  font-size: 14px;
  position: fixed;
  right: 20px;
  bottom: 10px;
  a{
    text-decoration: none;
    color: #333;

    &:hover{
      text-decoration: underline;
      color: #000;
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console