Seeking guidance on aligning a span to the right of a div, where the span is nested within a button.
Although I have successfully achieved the above, I am encountering difficulties in vertically aligning the header while also keeping it to the left.
.spec-li>li>span {
padding: 5px 0 0 0;
}
.spec-label {
display: block;
float: left;
width: 50%;
font-weight: 700;
font-size: 12px;
}
.spec-value {
display: block;
float: right;
width: 50%;
text-align: right;
font-size: 12px;
}
.card-header-spec {
display: flex;
justify-content: space-between
}
.card-spec-button-font-size {
font-size: 30px
}
.spec-card {
border-width: 0;
border-top-width: 1px;
background-color: none;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<section>
<div class="accordion" id="accordionWeight">
<div class="card spec-card">
<div class="card-header card-header-spec" id="headingOne">
<h5 class="mb-0">Weight</h5>
<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<span class="card-spec-button-font-size">+</span>
</button>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionWeight">
<div class="card-body">
<ul class="list-unstyled spec-li">
<li>
<span class="spec-label">Base Weight</span>
<span class="spec-value">2351 lbs (1064kg)</span>
</li>
<li>
<span class="spec-label">Useful Load</span>
<span class="spec-value">1249 lbs (569kg)</span>
</li>
<li>
<span class="spec-label">Cabin payload with 3 hr trip fuel and 45 min reserve</span>
<span class="spec-value">895 lbs (409 kg)</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
I've included a screenshot showcasing the current layout:https://i.sstatic.net/RJ0HV.png
If anyone can assist with this issue, it would be greatly appreciated.