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-globe"></i></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-filetype-java"></i></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-globe"></i></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-globe"></i></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;
}
:root{ --main-color: #16a085; }
.main-timeline{ font-family: 'Poppins', sans-serif; }
.main-timeline:after{
content: '';
display: block;
clear: both;
}
.main-timeline .timeline{
width: 50%;
margin: 0 5px 0 0;
float: left;
}
.main-timeline .timeline-content{
background-color: #fffbef;
padding: 20px 120px 20px 20px;
border-radius: 20px 0;
box-shadow: 0 0 15px rgba(0,0,0,0.15);
outline: 1px solid rgba(0,0,0,0.1);
outline-offset: 10px;
display: block;
overflow: hidden;
position: relative;
}
.main-timeline .timeline-content:hover{ text-decoration: none; }
.main-timeline .timeline-content:before{
content: '';
background-color: var(--main-color);
height: 100%;
width: 100px;
opacity: 0.3;
position: absolute;
right: 0;
top: 0;
}
.main-timeline .timeline-icon{
color: var(--main-color);
font-size: 50px;
text-align: center;
width: 100px;
transform: translateY(-50%);
position: absolute;
right: 0;
top: 50%;
}
.main-timeline .title{
color: var(--main-color);
font-size: 22px;
font-weight: 300;
text-transform: capitalize;
margin: 0 0 7px;
}
.main-timeline .description{
color: #888;
font-size: 14px;
font-weight: 300;
line-height: 22px;
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{
padding: 20px 20px 20px 120px; }
.main-timeline .timeline:nth-child(even) .timeline-content:before{
right: auto;
left: 0;
}
.main-timeline .timeline:nth-child(even) .timeline-icon{
right: auto;
left: 0;
}
.main-timeline .timeline:nth-child(4n+2){ --main-color: #8e44ad; }
.main-timeline .timeline:nth-child(4n+3){ --main-color: #2980b9; }
.main-timeline .timeline:nth-child(4n+4){ --main-color: #c0392b; }
@media screen and (max-width:767px){
.main-timeline .timeline,
.main-timeline .timeline:nth-child(even){
width: 100%;
margin: 0 0 31px;
}
}
@media screen and (max-width:479px){
.main-timeline .timeline-content,
.main-timeline .timeline:nth-child(even) .timeline-content{
text-align: center;
padding: 120px 20px 20px;
}
.main-timeline .timeline-content:before,
.main-timeline .timeline:nth-child(even) .timeline-content:before{
height: 100px;
width: 100%;
transform: translateY(0) translateX(-50%);
left: 50%;
right: auto;
top: 0;
}
.main-timeline .timeline-icon,
.main-timeline .timeline:nth-child(even) .timeline-icon{
line-height: 100px;
height: 100px;
width: auto;
transform: translateY(0) translateX(-50%);
left: 50%;
right: auto;
top: 0;
}
}
</style>
</body>
</html>