Java, Python, Database, Flutter, Matlap, Micorcontroller, Tutorials, Swing Framework

Hancie e-Learning Studio

Learn Java, Learn HTML, CSS, PHP, Javascript, Python Tutorials || Download program source codes || Java Project and Source code available here || All types error troubleshooting tips available here

How to Make Responsive Timeline Using HTML and CSS?

 


index.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,
initial-scale=1.0">
  <title>Hancie e-Learning Studio</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist
/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3
/dist/js/bootstrap.bundle.min.js"></script>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/
bootstrap-icons@1.9.1/font/bootstrap-icons.css">
</head>
<body>
 <br>
<div class="container">
    <div class="row">
        <div class="col-md-12">
<div class="main-timeline">
    <div class="timeline">
         <a id="hancie" href="#" class="timeline-content">
<div class="timeline-icon"><i class="bi bi-browser-edge"></i></div>
             <div class="timeline-year">2022</div>
            <h3  class="title">Web Designing</h3>
            <p  class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
 males uada tellus lorem, et condimentum neque commodo
  Integer males uada tellus lorem, et condimentum neque commodo
             </p>
         </a>
    </div>
    <div class="timeline">
            <a id="hancie" href="#" class="timeline-content">
<div class="timeline-icon"><i class="bi bi-window"></i></div>
                <div class="timeline-year">2020</div>
                <h3  class="title">Java Script</h3>
                <p  class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Integer males uada tellus lorem, et condimentum
 neque commodo Integer males uada tellus lorem, et
  condimentum neque commodo
                </p>
            </a>
        </div>
        <div class="timeline">
            <a id="hancie" href="#" class="timeline-content">
<div class="timeline-icon"><i class="bi bi-window"></i></div>
                <div class="timeline-year">2019</div>
                <h3  class="title">Web Designing</h3>
                <p  class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 Integer males uada tellus lorem, et condimentum neque commodo
  Integer males uada tellus lorem, et condimentum neque commodo
                </p>
            </a>
         </div>
<div class="timeline">
    <a id="hancie" href="#" class="timeline-content">
<div class="timeline-icon"><i class="bi bi-window"></i></div>
        <div class="timeline-year">2021</div>
         <h3  class="title">Web Development</h3>
        <p  class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing
 elit. Integer males uada tellus lorem, et condimentum
  neque commodo Integer males uada tellus lorem,
   et condimentum neque commodo
         </p>
</a>
</div>
            </div>
        </div>
    </div>
</div>

<style>


#hancie {
  text-decoration:none;
}
.main-timeline{ font-family: 'Poppins', sans-serif; }

.main-timeline:after{
    content: '';
    display: block;
    clear: both;
}

.main-timeline .timeline{
    width: 50%;
    margin: 0 5px 15px 0;
    float: left;
}

.main-timeline .timeline-content{
    background: linear-gradient(to right,transparent,#eee);
    min-height: 120px;
    padding: 120px 20px 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.main-timeline .timeline-content:hover{ text-decoration: none; }

.main-timeline .timeline-icon{
    color: #555;
    background: #eee;
    font-size: 40px;
    text-align: center;
    line-height: 80px;
    width: 70px;
    height: 80px;
    position: absolute;
    left: 20px;
    top: 20px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%,
50% 100%, 0 75%, 0 25%);
}

.main-timeline .timeline-year{
    color: #fff;
    background-color: #FF9521;
    font-size: 22px;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 0 0 10px 10px;
    position: absolute;
    top: 0;
    right: 0;
}

.main-timeline .timeline-year:after{
    content: '';
    background-color: #DE7101;
    height: 40px;
    width: 20px;
    border-radius: 0 0 10px 0;
    transform: rotate(-20deg);
    position: absolute;
    right: -8px;
    top: 3px;
    z-index: -1;
}

.main-timeline .title{
    color: #FF9521;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: capitalize;
    margin: 0 0 7px;
}

.main-timeline .description{
    color: #666;
    font-size: 13px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 1px;
    margin: 0;
}

.main-timeline .timeline:nth-child(even){
    margin: 0 0 15px 5px;
    float: right;
}

.main-timeline .timeline:nth-child(even) .timeline-content{
    background: linear-gradient(to left,transparent,#eee);
}

.main-timeline .timeline:nth-child(even) .timeline-icon{
    left: auto;
    right: 0;
}

.main-timeline .timeline:nth-child(even) .timeline-year{
    left: 0;
    right: auto;
}

.main-timeline .timeline:nth-child(even) .timeline-year:after{
    border-radius: 0 0 0 10px;
    transform: rotate(20deg);
    left: -8px;
    right: 0;
}

.main-timeline .timeline:nth-child(2) .timeline-year{
background-color: #00B7B5; }
.main-timeline .timeline:nth-child(2) .timeline-year:after{
background-color: #0073A1; }
.main-timeline .timeline:nth-child(2) .title{ color: #00B7B5; }

.main-timeline .timeline:nth-child(3) .timeline-year{
background-color: #F03C5B; }
.main-timeline .timeline:nth-child(3) .timeline-year:after{
background-color: #BC173F; }
.main-timeline .timeline:nth-child(3) .title{ color: #F03C5B; }

.main-timeline .timeline:nth-child(4) .timeline-year{
background-color: #8743B5; }
.main-timeline .timeline:nth-child(4) .timeline-year:after{
background-color: #592283; }
.main-timeline .timeline:nth-child(4) .title{ color: #8743B5; }

@media screen and (max-width:767px){
    .main-timeline .timeline,
    .main-timeline .timeline:nth-child(even){
        width: 100%;
        padding: 0 10px;
        margin: 0 0 30px;
    }
}

</style>


</body>
</html>
Welcome all to Hancie e-learning studio
Friends,
I have brought an e-learning platform for you from where you can teach internet, website, programming language, error troubleshooting, etc. Blogger, WordPress templates, themes are available for free on this website, which are not charged for downloading, so that you can earn money by blogging using such templates and this is not a difficult task and this You can do it now. You keep uploading new posts by us and keep taking advantage of this website. The aim of which is to spread the knowledge related to internet, career, web designing and technology to the people and contribute to the development of the country.