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="timeline-container show-desk">
  <h1>The History of Caffeine</h1>
  <div id="timeline">
    <div class="timeline-col left-col">
      <div class="timeline-item" id="2737">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>2737 B.C.</h3>
          <p>Tea purportedly discovered by the Chinese emperor Shen Nung. Traditional stories tell that monks drank tea to stay awake during meditation practice.</p>
          <img src="https://lh3.googleusercontent.com/-q_kpkdu_JeU/UtsiXnFAOjI/AAAAAAAADeA/wIw57HIye1E/w530-h353-n/shennong.png" />
        </div>
      </div>
      <div class="timeline-item" id="t400">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>400 A.D.</h3>
          <p>Mayans begin drinking chocolate in everyday life. It was a frothy, bitter drink.</p>
        </div>
      </div>
      <div class="timeline-item" id="t800">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>800 A.D.</h3>
          <p>Coffee purportedly discovered by an Ethiopian goatherd.</p>
          <img src="https://www.coffeecrossroads.com/wp-content/uploads/kaldi-adapted-from-uker.png" />
        </div>
      </div>
      <div class="timeline-item" id="t1528">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1528</h3>
          <p>Cortez brings cakes of processed cocoa with him back to Spain.</p>
          <img src="https://cocoanibs.files.wordpress.com/2012/06/christopher_columbus61.jpg" />
        </div>
      </div>
      <div class="timeline-item" id="t1645a">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1645</h3>
          <p>English develop the present word for tea (pronounced tay – rhyming with day). Before this, tea was called ch’a (chia or chaw).</p>
        </div>
      </div>
      <div class="timeline-item" id="t1773">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1773</h3>
          <p>Tea is dumped into the Boston Harbor to protest “taxation without representation.” This increased coffee use and tea smuggling in the colonies and tea sales in England (to show loyalty to the crown).</p>
          <img src="https://upload.wikimedia.org/wikipedia/commons/e/e6/Boston_Tea_Party_w.jpg" />
        </div>
      </div>
              <div class="timeline-item" id="t1819">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1819</h3>
            <p>German chemist Friedlieb Ferdinand Runge isolates pure caffeine.</p>
            <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1997267/Ferdinand.png" />
          </div>
        </div> 
      <div class="timeline-item" id="t1876">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1876</h3>
          <p>Swiss chocolatier Daniel Peter invents milk chocolate, first sold under the Nestle label.</p>
        </div>
      </div>
      <div class="timeline-item" id="t1903">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1903</h3>
          <p>Commercial decaffeination process starts.</p>
        </div>
      </div>
      <div class="timeline-item" id="t1906">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1906</h3>
          <p>All cocaine removed from coca-cola.</p>
        </div>
      </div>
      <div class="timeline-item" id="t1946">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1946</h3>
          <p>Coffee consumption reaches an all time high, then begins to fall.</p>
        </div>
      </div>
      <div class="timeline-item" id="t1985">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1985</h3>
          <p>Jolt Cola introduced in the U.S. with the slogan "All the sugar and twice the caffeine.”</p>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1997267/jolt.jpg" />
        </div>
      </div>
      <div class="timeline-item" id="t1995">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1995</h3>
          <p>Starbucks starts to sell the Frappuccino.</p>
        </div>
      </div>
      <div class="timeline-item" id="t2004">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>2004</h3>
          <p>5-hour energy released.</p>
          <img src="https://img.purch.com/rc/696x392/aHR0cDovL3d3dy5saXZlc2NpZW5jZS5jb20vaW1hZ2VzL2kvMDAwLzEwMC8wMzcvb3JpZ2luYWwvNS1ob3VyLWVuZXJneS1kcmlua3MuanBn" />
        </div>
      </div>
    </div>
    <div class="timeline-col right-col">
      <div class="timeline-item" id="t1900">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1900 B.C.</h3>
          <p>Mayans start drinking alcoholic cacao drinks.</p>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1997267/maya.png" />
        </div>
      </div>
      <div class="timeline-item" id="t780">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>780 A.D.</h3>
          <p>Tea starts being used for nonmedicinal purposes.</p>
        </div>
      </div>
      <div class="timeline-item" id="t1400">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1400s</h3>
          <p>Coffee used by Sufi of Yemen to stay awake for their religious rituals.</p>
        </div>
      </div>
      <div class="timeline-item" id="t1600">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1600</h3>
          <p>Pope Clement VIII deems coffee a Christian beverage.</p>
          <img src="https://i2.wp.com/www.catholicgentleman.net/wp-content/uploads/2014/04/pope-coffee.jpg?ssl=1" />
        </div>
      </div>
      <div class="timeline-item" id="t1645b">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1650s</h3>
          <p>Coffeehouses spread across Europe. These coffeehouses were used as “penny universities” – places people could get a cup of coffee or tea for a penny and sit and listen to the great literary and political figures of the period.</p>
          <img src="https://qph.fs.quoracdn.net/main-qimg-7e0095c94beddb0c50ad98522a09c242-c" />
        </div>
      </div>
            <div class="timeline-item" id="t1790">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1790</h3>
          <p>Commercial roasting of coffee begins in New York.</p>
        </div>
      </div>

      <div class="timeline-item" id="t1847">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1847</h3>
          <p>First chocolate bars appear in Bristol, England.</p>
          <img src="https://pocketbookuk.files.wordpress.com/2013/11/frysfiveboyschocsign.jpg" />
        </div>
      </div>
      <div class="timeline-item" id="t1886">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1886</h3>
          <p>Coca-cola starts being sold as a nerve tonic. The two key ingredients were cocaine (from the coca leaf) and caffeine (from the kola nut).</p>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1997267/tonic.jpg" />
        </div>
      </div>
      <div class="timeline-item" id="t1911">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1911</h3>
          <p>Caffeine becomes the focus of one of the earliest documented health scares, when the U.S. government seizes Coca-Cola’s syrup, alleging the caffeine was "injurious to health". The judge ruled in favor of Coca-Cola, but caffeine was added to the FDA's list of "habit-forming" and "deleterious" substances.</p>
        </div>
      </div>
      <div class="timeline-item" id="t1949">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1949</h3>
          <p>First energy drink made in Chicago. It contained B vitamins, caffeine, and sugar, and was marketed as an alternative to soda.</p>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1997267/drenuf.png" />
        </div>
      </div>
      <div class="timeline-item" id="t1990">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1990s</h3>
          <p>Coffee intake begins to increase again with interest in espresso and specialty drinks.</p>
        </div>
      </div>
      <div class="timeline-item" id="t1997">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1997</h3>
          <p>1997 Red Bull drinks appear in stores in California.</p>
          <img src="https://static.adweek.com/adweek.com-prod/wp-content/uploads/2018/03/redbull-content-2018.jpg" />
        </div>
      </div>
      <div class="timeline-item" id="t2010">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>2010</h3>
          <p>Caffeinated alcoholic beverages like Four Loko and Joose banned in the U.S.</p>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="timeline-container show-mobile">
  <h1>The History of Caffeine</h1>
  <div id="timeline">
    <div class="timeline-col left-col">
      <div class="timeline-item" id="2737">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>2737 B.C.</h3>
          <p>Tea purportedly discovered by the Chinese emperor Shen Nung. Traditional stories tell that monks drank tea to stay awake during meditation practice.</p>
          <img src="https://lh3.googleusercontent.com/-q_kpkdu_JeU/UtsiXnFAOjI/AAAAAAAADeA/wIw57HIye1E/w530-h353-n/shennong.png" />
        </div>
      </div>
      <div class="timeline-item" id="t1900">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1900 B.C.</h3>
          <p>Mayans start drinking alcoholic cacao drinks.</p>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1997267/maya.png" />
        </div>
      </div>
      <div class="timeline-item" id="t400">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>400 A.D.</h3>
          <p>Mayans begin drinking chocolate in everyday life. It was a frothy, bitter drink.</p>
        </div>
      </div>
      <div class="timeline-item" id="t800">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>800 A.D.</h3>
          <p>Coffee purportedly discovered by an Ethiopian goatherd.</p>
          <img src="https://www.coffeecrossroads.com/wp-content/uploads/kaldi-adapted-from-uker.png" />
        </div>
      </div>
      <div class="timeline-item" id="t780">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>780 A.D.</h3>
          <p>Tea starts being used for nonmedicinal purposes.</p>
        </div>
      </div>
      <div class="timeline-item" id="t1400">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1400s</h3>
          <p>Coffee used by Sufi of Yemen to stay awake for their religious rituals.</p>
        </div>
      </div>
      <div class="timeline-item" id="t1528">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1528</h3>
          <p>Cortez brings cakes of processed cocoa with him back to Spain.</p>
          <img src="https://cocoanibs.files.wordpress.com/2012/06/christopher_columbus61.jpg" />
        </div>
      </div>
      <div class="timeline-item" id="t1600">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1600</h3>
          <p>Pope Clement VIII deems coffee a Christian beverage.</p>
          <img src="https://i2.wp.com/www.catholicgentleman.net/wp-content/uploads/2014/04/pope-coffee.jpg?ssl=1" />
        </div>
      </div>
      <div class="timeline-item" id="t1645a">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1645</h3>
          <p>English develop the present word for tea (pronounced tay – rhyming with day). Before this, tea was called ch’a (chia or chaw).</p>
        </div>
      </div>
      <div class="timeline-item" id="t1645b">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1650s</h3>
          <p>Coffeehouses spread across Europe. These coffeehouses were used as “penny universities” – places people could get a cup of coffee or tea for a penny and sit and listen to the great literary and political figures of the period.</p>
          <img src="https://qph.fs.quoracdn.net/main-qimg-7e0095c94beddb0c50ad98522a09c242-c" />
        </div>
      </div>
      <div class="timeline-item" id="t1773">
        <div class="timeline-icon"></div>
        <div class="timeline-content">
          <h3>1773</h3>
          <p>Tea is dumped into the Boston Harbor to protest “taxation without representation.” This increased coffee use and tea smuggling in the colonies and tea sales in England (to show loyalty to the crown).</p>
          <img src="https://upload.wikimedia.org/wikipedia/commons/e/e6/Boston_Tea_Party_w.jpg" /></div>
        <div class="timeline-item" id="t1790">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1790</h3>
            <p>Commercial roasting of coffee begins in New York.</p>
          </div>
        </div>
        <div class="timeline-item" id="t1819">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1819</h3>
            <p>German chemist Friedlieb Ferdinand Runge isolates pure caffeine.</p>
            <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1997267/Ferdinand.png" />
          </div>
        </div>        
        <div class="timeline-item" id="t1847">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1847</h3>
            <p>First chocolate bars appear in Bristol, England.</p>
            <img src="https://pocketbookuk.files.wordpress.com/2013/11/frysfiveboyschocsign.jpg" />
          </div>
        </div>
        <div class="timeline-item" id="t1876">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1876</h3>
            <p>Swiss chocolatier Daniel Peter invents milk chocolate, first sold under the Nestle label.</p>
          </div>
        </div>
        <div class="timeline-item" id="t1886">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1886</h3>
            <p>Coca-cola starts being sold as a nerve tonic. The two key ingredients were cocaine (from the coca leaf) and caffeine (from the kola nut).</p>
            <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1997267/tonic.jpg" />
          </div>
        </div>
        <div class="timeline-item" id="t1903">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1903</h3>
            <p>Commercial decaffeination process starts.</p>
          </div>
        </div>
        <div class="timeline-item" id="t1906">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1906</h3>
            <p>All cocaine removed from coca-cola.</p>
          </div>
        </div>
        <div class="timeline-item" id="t1906">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1911</h3>
            <p>Caffeine becomes the focus of one of the earliest documented health scares, when the U.S. government seizes Coca-Cola’s syrup, alleging the caffeine was "injurious to health". The judge ruled in favor of Coca-Cola, but caffeine was added to
              the FDA's list of "habit-forming" and "deleterious" substances.</p>
          </div>
        </div>
        <div class="timeline-item" id="t1949">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1949</h3>
            <p>First energy drink made in Chicago. It contained B vitamins, caffeine, and sugar, and was marketed as an alternative to soda.</p>
            <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1997267/drenuf.png" />
          </div>
        </div>
        <div class="timeline-item" id="t1985">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1985</h3>
            <p>Jolt Cola introduced in the U.S. with the slogan "All the sugar and twice the caffeine.”</p>
            <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1997267/jolt.jpg" />
          </div>
        </div>
        <div class="timeline-item" id="t1990">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1990s</h3>
            <p>Coffee intake begins to increase again with interest in espresso and specialty drinks.</p>
          </div>
        </div>
        <div class="timeline-item" id="t1995">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1995</h3>
            <p>Starbucks starts to sell the Frappuccino.</p>
          </div>
        </div>
        <div class="timeline-item" id="t1997">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>1997</h3>
            <p>1997 Red Bull drinks appear in stores in California.</p>
            <img src="https://static.adweek.com/adweek.com-prod/wp-content/uploads/2018/03/redbull-content-2018.jpg" />
          </div>
        </div>
        <div class="timeline-item" id="t2004">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>2004</h3>
            <p>5-hour energy released.</p>
            <img src="https://img.purch.com/rc/696x392/aHR0cDovL3d3dy5saXZlc2NpZW5jZS5jb20vaW1hZ2VzL2kvMDAwLzEwMC8wMzcvb3JpZ2luYWwvNS1ob3VyLWVuZXJneS1kcmlua3MuanBn" />
          </div>
        </div>
        <div class="timeline-item" id="t2010">
          <div class="timeline-icon"></div>
          <div class="timeline-content">
            <h3>2010</h3>
            <p>Caffeinated alcoholic beverages like Four Loko and Joose banned in the U.S.</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  margin: 0;
  padding: 0;
  font-family: helvetica, arial, tahoma, verdana;
  line-height: 20px;
  font-size: 14px;
}
h1 {
text-align: center;
      font-size: 3em;
    margin-top: 1em;
}
#timeline,
#timeline *,
#timeline *:before,
#timeline *:after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
#timeline,
#timeline *,
#timeline *:before,
#timeline *:after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
.timeline-container {
  width: 100%;
}
#timeline h3 {
  position: relative;
  z-index: 900;
}
#timeline p {
  margin-bottom: 0;
  margin-top: 1em;
}
#timeline img {
  max-width: calc(100% + 40px);
  margin-top: 1em;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -26px;
}
#timeline {
  width: 100%;
  margin: 30px auto;
  position: relative;
  padding: 0 10px;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  transition: all 0.4s ease;
  float: left;
}
.show-desk {
    max-width: 900px;
    margin: 0 auto;
}
#timeline:before {
  content: "";
  width: 4px;
  bottom: 130px;
  background: #332b26;
  left: 50%;
  top: 0;
  position: absolute;
}
#timeline:after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  background: #332b26;
  bottom: 100px;
  left: calc(50% - 8px);
  border-radius: 50%;
}
.timeline-col {
  width: calc(50% - 60px);
  float: left;
}
.left-col {
  margin-right: 60px;
}
.right-col {
  margin-left: 60px;
}
#timeline .timeline-item {
  margin-bottom: 1em;
  position: relative;
  box-sizing: border-box;
}
#timeline .timeline-item .timeline-icon {
  background: #332b26;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
  left: -60px;
  margin-left: -23px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  border-radius: 50%;
}
#timeline .timeline-item .timeline-content {
  width: 100%;
  background: whitesmoke;
  padding: 20px;
  -webkit-box-shadow: 0px 5px 13px 1px rgba(192, 192, 192, 1);
  -moz-box-shadow: 0px 5px 13px 1px rgba(192, 192, 192, 1);
  box-shadow: 0px 5px 13px 1px rgba(192, 192, 192, 1);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  border-radius: 5px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
  overflow: hidden;
  box-sizing: border-box;
}
#timeline .timeline-item .timeline-content h3 {
  padding: 15px;
  background: #332b26;
  color: #fff !important;
  margin: -20px -20px 0 -20px;
  font-weight: 300;
  -webkit-border-radius: 3px 3px 0 0;
  -moz-border-radius: 3px 3px 0 0;
  -ms-border-radius: 3px 3px 0 0;
  border-radius: 3px 3px 0 0;
}
.left-col .timeline-icon:before {
  content: "";
  position: absolute;
  left: -50px;
  top: 23px;
  width: 50px;
  height: 4px;
  background-color: #332b26;
  z-index: 110;
}
.right-col .timeline-icon:before {
  content: "";
  position: absolute;
  top: 23px;
  width: 50px;
  height: 4px;
  background-color: #332b26;
  z-index: 110;
  right: -50px;
}
@media screen and (min-width: 790px) {
  .timeline-item {
    width: 100%;
  }
  .show-mobile {
    display: none;
  }
  #timeline > div:nth-child(odd) .timeline-icon {
    left: auto;
    right: -85px;
  }
  #t1900 {
    margin-top: 30%;
  }
  #t400 {
    margin-top: 30%;
  }
  #t800 {
    margin-top: 40%;
  }
  #t780 {
    margin-top: 20%;
  }
  #t1400 {
    margin-top: 85%;
  }
  #t1600 {
    margin-top: 45%;
  }
  #t1528 {
    margin-top: 24%;
  }
  #t1645a {
    margin-top: 35%;
  }
  #t1645b {
    margin-top: 30%;
  }
  #t1773 {
    margin-top: 50%;
  }
  #t1790 {
    margin-top: 25%;
  }
  #t1819 {
    margin-top: 35%;
  }
  #t1847 {
    margin-top: 60%;
  }
  #t1876 {
    margin-top: 15%;
  }
  #t1886 {
    margin-top: 47%;
  }
  #t1906 {
    margin-top: 25%;
  }
  #t1903 {
    margin-top: 55%;
  }
  #t1911 {
    margin-top: 20%;
  }
  #t1946 {
    margin-top: 55%;
  }
  #t1949 {
    margin-top: 20%;
  }
  #t1985 {
    margin-top: 80%;
  }
  #t1990 {
    margin-top: 40%;
  }
  #t1995 {
    margin-top: 10%;
  }
  #t1997 {
    margin-top: 60%;
  }
  #t2004 {
    margin-top: 50%;
  }
  #t2010 {
    margin-top: 25%;
  }
}
@media screen and (max-width: 1500px) {
  #t1645a {
    margin-top: 19%;
  }
}
@media screen and (max-width: 1300px) {
  #t1886 {
    margin-top: 57%;
  }
}
@media screen and (max-width: 900px) and (min-width: 790px) {
  #t1600 {
    margin-top: 65%;
  }
  #t1645b {
    margin-top: 40%;
  }
  #t1995 {
    margin-top: 40%;
  }
  #t2004 {
    margin-top: 60%;
  }
}
@media screen and (max-width: 1050px) and (min-width: 1000px) and (min-height: 700px) {
  #t780 {
    margin-top: 50%;
  }
  #t1995 {
    margin-top: 30%;
  }
}
@media screen and (max-width: 789px) {
  .show-desk {
    display: none;
  }
  #timeline {
    margin: 30px;
    padding: 0px;
    width: 90%;
  }
  #timeline:before {
    left: 0;
  }
  #timeline:after {
    left: -8px;
  }
  #timeline .timeline-item .timeline-content {
    width: 100%;
  }
  #timeline .timeline-icon:before,
  #timeline div:nth-child(even) .timeline-icon:before {
    right: -40px;
    left: auto;
  }
  #timeline .timeline-item .timeline-icon {
    left: -60px;
  }
  .timeline-col {
    width: calc(100% - 60px);
    margin-right: 0;
    margin-left: 60px;
    float: none;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console