0
all right? I’m trying to make a Timeline with scroll, but I’m not getting the Timeline elements into the div when it reaches the maximum size, so that this part is not visible. Here is the code I have so far, where it shows the problem of line breaking that is occurring!
https://codepen.io/Arthur_Oliveira/pen/GRKNGBb
.timeline-background {
position: relative;
width: 100%;
height: 300px;
background-color: #F5F5F5;
padding: 0;
padding-top: 50px;
}
.list-items {
position: relative;
width: 400px;
height: auto;
margin: 0;
padding: 0;
margin-top: 20px;
margin-left: 37px;
max-width: 440px;
}
.list-item {
position: absolute;
width: 500px;
top: 0;
height: auto;
margin: 0;
padding: 0;
}
.list-items li {
position: relative;
display: flex;
}
.list-item li:first-child {
position: absolute;
left: 78px;
top: 63px;
cursor: pointer;
list-style: none;
width: 30px;
height: 30px;
background-color: #fff;
border: 3px solid #AD80FF;
color: #D9D9D9;
border-radius: 50%;
float: left;
}
.list-item li:last-child {
position: absolute;
right: -13px;
top: 63px;
cursor: pointer;
list-style: none;
width: 30px;
height: 30px;
margin-left: 50px;
background-color: #fff;
border: 3px solid #AD80FF;
color: #D9D9D9;
border-radius: 50%;
float: left;
}
.list-item li:last-child:hover {
color: #FF04FF;
}
.list-item li:first-child:hover {
color: #FF04FF;
}
.list-item .active {
}
.list-items li {
cursor: pointer;
margin-left: 50px;
list-style: none;
width: 15px;
height: 15px;
background-color: #fff;
border: 3px solid #D9D9D9;
margin-top: 0;
border-radius: 50%;
float: left;
}
.list-items li.active {
cursor: pointer;
margin-left: 50px;
list-style: none;
border: 3px solid #FF04FF;
background-color: #FF04FF;
border-radius: 50%;
float: left;
}
.list-item li:first-child:after {
cursor: initial;
position: absolute;
content: '';
width: 50px;
margin-top: -6px;
margin-left: 40px;
height: 50%;
border-bottom: 2px solid #D9D9D9;
z-index: 0;
}
.list-items li:after {
cursor: initial;
position: absolute;
content: '';
width: 50px;
margin-top: 0px;
margin-left: 15px;
height: 50%;
border-bottom: 2px solid #D9D9D9;
z-index: 0;
}
.list-item ul .actived:after {
border-bottom: 2px solid #FF04FF;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<div class="d-flex justify-content-center timeline-background">
<div class="d-flex justify-content-center">
<section class="list-items">
<ul class="dots">
<li class="active"><a class="item" href="#"></a></li>
<li><a class="item" href="#"></a></li>
<li><a class="item" href="#"></a></li>
<li><a class="item" href="#"></a></li>
<li><a class="item" href="#"></a></li>
<li><a class="item" href="#"></a></li>
<li><a class="item" href="#"></a></li>
<li><a class="item" href="#"></a></li>
<li><a class="item" href="#"></a></li>
</ul>
</section>
<div class="list-item">
<ul>
<li class="d-flex d-sm-flex d-md-flex d-lg-flex d-xl-flex justify-content-center align-items-center justify-content-sm-center align-items-sm-center justify-content-md-center align-items-md-center actived" href="#list1"><i class="icon ion-ios-arrow-back"></i></li>
<li class="d-flex justify-content-center align-items-center"><a class="item" href="#"></a><i class="icon ion-ios-arrow-forward"></i></li>
</ul>
</div>
</div>
</div>
I tried putting a fixed size to div and using overflow Hidden, scroll and auto, but still the same problem! If anyone has any idea how to do that and can help, I am very grateful! Thanks in advance!!