.timeline { position: relative; padding: 0; list-style: none; } .timeline:before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; /* place it in the horizontal center */ transform: translateX(-50%); /* shift back by half its own width */ width: 0; /* we don’t want width, just a border */ border-left: 3px solid #ffffff3c; } .timeline>li { position: relative; margin-bottom: 50px; min-height: 50px; } .timeline > li.timeline-inverted { display: flex; align-items: center; /* centers panel and image vertically */ justify-content: flex-end; /* Left on X-axis */ } .timeline>li:before, .timeline>li:after { content: " "; display: table; } .timeline>li:after { clear: both; } .timeline>li .timeline-panel { float: right; position: relative; width: 100%; padding: 0 20px 0 20px; text-align: left; align-items: center; } .timeline>li .timeline-panel:before { right: auto; left: -15px; border-right-width: 15px; border-left-width: 0; } .timeline>li .timeline-panel:after { right: auto; left: -14px; border-right-width: 14px; border-left-width: 0; } .timeline>li .timeline-image { visibility: hidden; z-index: 100; position: absolute; border: 1px solid #000000; border-radius: 100%; text-align: center; background-color: #fff; display: flex; box-shadow: 0 0 0 2px #eeeeee, } .img-me { z-index: 100; width: 100px; height: 100px; border-radius: 20%; text-align: center; background-color: #fff; margin: auto auto; display: block; } .timeline>li .timeline-image h4 { margin-top: 12px; font-size: 10px; line-height: 14px; } .img-me h4 { margin-top: 12px; font-size: 10px; line-height: 14px; } .timeline>li.timeline-inverted>.timeline-panel { float: right; padding: 0 20px 0 20px; text-align: left; } .timeline>li.timeline-inverted>.timeline-panel:before { right: auto; left: -15px; border-right-width: 15px; border-left-width: 0; } .timeline>li.timeline-inverted>.timeline-panel:after { right: auto; left: -14px; border-right-width: 14px; border-left-width: 0; } .timeline>li:last-child { margin-bottom: 0; } .timeline .timeline-heading h4 { margin-top: 0; color: inherit; } .timeline .timeline-heading h4.subheading { text-transform: none; } .timeline .timeline-body>p, .timeline .timeline-body>ul { margin-bottom: 0; } @media(min-width:768px) { .timeline:before { left: 10%; width: 4px; } .timeline>li { margin-bottom: 100px; min-height: 100px; } .timeline>li .timeline-panel { float: left; width: 60%; padding: 0 20px 20px 30px; text-align: right; } .timeline>li .timeline-image { visibility: visible; left: 9%; width: 100px; height: 100px; margin-left: -50px; } .img-me { //left: 50%; width: auto; height: auto; max-width: 86px; max-height: 86px; } .timeline>li .timeline-image h4 { margin-top: 16px; font-size: 13px; line-height: 18px; } .img-me h4 { margin-top: 16px; font-size: 13px; line-height: 18px; } .timeline>li.timeline-inverted>.timeline-panel { float: right; padding: 0 30px 20px 20px; text-align: left; } } @media(min-width:992px) { .timeline>li { min-height: 150px; } .timeline>li .timeline-panel { float: left; width: 60%; padding: 0 20px 20px; } .timeline>li .timeline-image { visibility: visible; width: 150px; height: 150px; margin-left: -75px; } .img-me { max-width:120px; max-height:120px; width: auto; height: auto; } .timeline>li .timeline-image h4 { margin-top: 30px; font-size: 18px; line-height: 26px; } .img-me h4 { margin-top: 30px; font-size: 18px; line-height: 26px; } .timeline>li.timeline-inverted>.timeline-panel { padding: 0 20px 20px; } }