I've been scouring the internet for a solution to this problem, but so far I haven't had any luck.
My goal is to design a horizontal line with dots at each end, similar to this example.
Does anyone know how I can achieve this using CSS?
I attempted to create something myself, but I didn't get very far. Here's my code:
.VecBox {
background: #FFFFFF;
mix-blend-mode: normal;
box-shadow: 0px -3px 15px 5px rgba(65, 65, 65, 0.07);
border-radius: 20px;
padding-top: 20px;
padding-left: 10px;
padding-bottom: 20px;
}
.pickDate {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: normal;
font-size: 18px;
font-variant: small-caps;
color: #2F312F;
}
.pickTm {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: normal;
font-size: 15px;
font-variant: small-caps;
color: #2F312F;
}
<div class="VecBox">
<div class="row">
<div class="col-6 w-100 text-left LocationAB pl-5">chembumukku</div>
<div class="col-6 w-100 text-right LocationAB pr-5">alappuzha</div>
</div>
</div>
<div class="VecBox mt-4">
<div class="row">
<div class="col-6">
<div class="w-100 pl-2 pickDate text-left">07 December 2021</div>
<div class="w-100 pl-2 pickTm mt-2 text-left">04 : 15 PM</div>
</div>
<div class="col-6">
<div class="w-100 pr-2 pickDate text-right">07 December 2021</div>
<div class="w-100 pr-2 pickTm mt-2 text-right">04 : 15 PM</div>
</div>
<div class="col-12 text-center pickDis">
2 days and 22 hours
</div>
</div>
</div>