"Items on circle"
Bootstrap 4.1.1 Snippet by SANTANU CHOWDHURY

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-6">
<ul class='circle-container'>
<li onclick="document.getElementById('innerContent').innerHTML='Railway Station<br /><b>2.2Kms</b>'" style="--circle-index:0; --total:8" data-index="0"><div class="img-border"><img src='https://i.ibb.co/ssfS6Qc/location1.png'></span></li>
<li onclick="document.getElementById('innerContent').innerHTML='Bus Stop<br /><b>500m</b>'" style="--circle-index:1; --total:8" data-index="1"><div class="img-border"><img src='https://i.ibb.co/ssfS6Qc/location1.png'></span></li>
<li style="--circle-index:2; --total:8" data-index="2"><div class="img-border"><img src='https://i.ibb.co/ssfS6Qc/location1.png'></span></li>
<li style="--circle-index:3; --total:8" data-index="3"><div class="img-border"><img src='https://i.ibb.co/ssfS6Qc/location1.png'></span></li>
<li style="--circle-index:4; --total:8" data-index="4"><div class="img-border"><img src='https://i.ibb.co/ssfS6Qc/location1.png'></span></li>
<li style="--circle-index:5; --total:8" data-index="5"><div class="img-border"><img src='https://i.ibb.co/ssfS6Qc/location1.png'></span></li>
<li style="--circle-index:6; --total:8" data-index="6"><div class="img-border"><img src='https://i.ibb.co/ssfS6Qc/location1.png'></span></li>
<li style="--circle-index:7; --total:8" data-index="7"><div class="img-border"><img src='https://i.ibb.co/ssfS6Qc/location1.png'></span></li>
<div class="seclected-content">
<p id="innerContent">Check Distance form Project Name</p>
</div>
</ul>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.circle-container {
position: relative;
width: 20em;
height: 20em;
border-radius: 50%;
padding: 0;
list-style: none;
margin: 5em auto 0;
background: #EAEDEF;
}
.circle-container li .img-border{
border: 1px solid;
border-radius: 50px;
overflow: hidden;
}
.circle-container > * {
display: block;
position: absolute;
top: 50%;
left: 50%;
margin: -3em;
width: 90px;
height: 90px;
border-radius: 50px;
border: none;
padding: 16px;
background: #fff;
}
.circle-container > *:nth-of-type(1) {
transform: rotate(0deg) translate(10em) rotate(0deg);
}
/* Om */
.circle-container > *:nth-of-type(1),
.circle-container > *:nth-of-type(2),
.circle-container > *:nth-of-type(3),
.circle-container > *:nth-of-type(4),
.circle-container > *:nth-of-type(5),
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: