I am looking to align some text on the right side of the page with consistent starting positions. Each paragraph has two spans, one floated left and the other floated right.
Here is an example with HTML and an image included for clarity.
.card {
max-width: 20rem;
border: 1px solid #004d99;
border-radius: 20px;
}
.card-header {
background-color: #fff;
border-bottom: 1px solid #004d99;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
}
.card-header input {
border: 2px #004d99 solid;
}
.card-header span {
color: #90ee90;
}
.card-header span i {
margin-left: 3%;
}
.card-body {
margin-bottom: 0px;
margin-top: 0px;
}
.card-body p span:first-child {
float: left;
}
.card-body p span:last-child {
float: right; text-align: left;
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="75171a1a01060107140535415b405b46">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<div class="card col-md-3 text-dark bg-light m-3">
<div class="card-header">
<input class="form-check-input chk" type="checkbox" value="" id="flexCheckDefault"> Stato: Pubblicato <span> ⬤ </span><i class="far fa-file-alt"></i>11 <i class="fas fa-eye"></i> 112
</div>
<div class="card-body">
<p>
<span >Nome:</span>
<span >Lotto Prova</span>
</p>
<p>
<span>Data Pubblicazione:</span>
<span>10/12/2021</span>
</p>
<p>
<span>Data di Scadenza:</span>
<span>25/12/2021</span>
</p>
<p>
<span>Accesso:</span>
<span>Link</span>
</p>
</div>
</div>
Current Layout:
Desired Layout:
Appreciate any help provided!