I want to separate between two elements one most right and the other most left I try to use justify-content-between but doesn't work I don't know why
HTML
<div class="post-left d-sm-flex justify-content-between">
<ul>
<li>
<div class="post-author">
<div class="avatar avatar-online avatar-xs">
<a href="doctor-profile.html"><img src="assets/img/doctors/doctor-thumb-01.jpg" class="avatar-img rounded-circle" alt="Post Author">
<span>username</span></a>
</div>
</div>
</li>
<li class="h4 "><i class="fas fa-money-bill-alt money"></i>400 $</li>
</ul>
</div>
style
.post-left ul {
list-style: none;
display: flex;
justify-content: center;
align-content: center;
align-items: center;
flex-wrap: wrap;
padding: inherit;
}
.post-left ul li {
color: #15558d ;
margin-bottom: 5px;
margin-left: 10px;
}
You can just add justify-content: space-between;
to the .post-left ul
, as below :
.post-left ul { . . . justify-content: space-between; }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.