I’ve posted the image of what problem I’m facing. It’s very simple:
There are two list items I want to display but they are not aligned properly. I want the End Date list item to be aligned with the green badge next to it. How do I take out the space between the grey and green badges??
The code is as follows:
<li>
<img src="/uploads/avatars/avatar.png" alt="" class="pull-left img-circle"/>
<div class="news-item-info">
<h4 class="name">{{ $name }}</h4>
<div class="position "><u>Start Date (inclusive):</u>
<div class="value pull-right badge ">
{{date('d M Y', strtotime($startdate))}}
</div>
</div>
<div class="position"><u>End Date (inclusive):</u>
<div class="value pull-right badge badge-success">
{{date('d M Y', strtotime($enddate))}}
</div>
</div>
</div>
</li>
2
Answers
Thanks to @ZimSystem's comment above. The final code I used is as follows:
Use bootstrap: see the following example