title: Connecting dots with an ordered list in CSS3
body: <p>I'm just trying to connect some dots with an ordered list but I cannot make  it work. I want to turn on a segment according to the active class and additionally I want to add the name of the student between the segment like this picture<a href="https://i.stack.imgur.com/oa1E3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oa1E3.png" alt="enter image description here"></a></p>
  
  <p>Then I can switch to turn on the other segment with the class active.</p>
  
  <p>This is what I've been trying to do. </p>
  
  <p><a href="https://jsfiddle.net/muvmcam6/2/" rel="nofollow noreferrer">jsfiddle</a></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I updated my fiddle because I forgot to add the class active to the li element</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I updated again my fiddle to show where I should go the name of the person.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>ol.timetable li {
      min-width: 25%;
  }
  
  .timetable {
      width: 100%;
      list-style: none;
      list-style-image: none;
      margin: 20px 0 20px 0;
      padding: 0;
  }
  
      .timetable li {
          float: left;
          text-align: center;
          position: relative;
      }
  
      .timetable .date {
          display: block;
          vertical-align: bottom;
          text-align: center;
          margin-bottom: 1em;
          color: #2B2B2B;
      }
  
      .timetable .dot {
          color: black;
          border: 3px solid #B2B2B2;
          background-color: #B2B2B2;
          border-radius: 50%;
          line-height: 1.2;
          width: 1.2em;
          height: 1.2em;
          display: inline-block;
          z-index: 2;
      }
  
      .timetable .active .date,
      .timetable .active .dot span {
          color: black;
      }
  
      .timetable .dot:before {
          content: "";
          display: block;
          background-color: #B2B2B2;
          height: 0.4em;
          width: 50%;
          position: absolute;
          bottom: 0.9em;
          left: 0;
          z-index: 1;
      }
  
      .timetable .dot:after {
          content: "";
          display: block;
          background-color: #B2B2B2;
          height: 0.4em;
          width: 50%;
          position: absolute;
          bottom: 0.9em;
          right: 0;
          z-index: 1;
      }
  
      .timetable li:first-child .dot:before {
          display: none;
      }
  
          .timetable li:first-child .dot:after .active {
              border: 3px solid #F26227 !important;
              background-color: #F26227 !important;
          }
  
      .timetable li:last-of-type .dot:after {
          display: none;
      }
  
       .timetable .active .dot {
          border: 3px solid #F26227;
          background-color: #F26227;
      }
  
      .timetable .active .dot:before,
      .timetable .active .dot:before {
          background-color: #F26227;
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ol class='timetable'&gt;
  &lt;li class="active"&gt;
    &lt;span class='date'&gt;5/26/2017&lt;/span&gt;
    &lt;span class='active dot'&gt;
       &lt;span&gt;
       &lt;/span&gt;
    &lt;/span&gt;
  &lt;/li&gt;
  &lt;li class="active"&gt;
     &lt;span class='date'&gt;5/29/2017&lt;/span&gt;
     &lt;span class='active dot'&gt;
        &lt;span&gt;&lt;/span&gt;
     &lt;/span&gt;
  &lt;/li&gt;
  &lt;li&gt;
     &lt;span class='date'&gt;6/5/2017&lt;/span&gt;
     &lt;span class='dot'&gt;
        &lt;span&gt;&lt;/span&gt;
     &lt;/span&gt;
  &lt;/li&gt;
  &lt;/ol&gt;</code></pre>
  </div>
  </div>
  </p>