Is there a way to align the content of these different divs?
I'm trying to match up the headers of each column with the corresponding items in the divs below. Can someone assist me in achieving this alignment?
row-header-course
should align with course-name
row-header-progress
should align with course-progress
row-header-remaining
should align with course-remaining
row-header-timestamp
should align with course-timestamp
All elements should be aligned to the left.
Below is the code snippet:
<div class="row historico">
<div class="row row-header col-md-12">
<div class="row-header-course col-md-4">Course</div>
<div class="row-header-progress col-md-2">Progress</div>
<div class="row-header-remaining col-md-2">Remaining</div>
<div class="row-header-timestamp col-md-2">Last Viewed</div>
<div class="row-header-remove col-md-2">Remove</div>
</div>
<div class="row-history col-md-12">
<div class="course-row row">
<div class="course-name col-md-4">
<i class="fa fa-caret-right" aria-hidden="true"></i>
<a href="https://www.xxx.com.br/course-test-4">Test Course 4</a>
</div>
<div class="course-progress col-md-2">
<div class="course-progress-bar-wrapper col-md-8">
<div class="course-progress-bar" style="width: 100%;"> </div>
</div>
<div class="course-progress-percent col-md-4">100%</div>
</div>
<div class="course-remaining col-md-2">Complete</div>
<div class="course-timestamp col-md-2">20 hours ago</div>
<div class="course-remove col-md-2"><i class="fa fa-times" aria-hidden="true"></i></div>
</div> <!-- .course-row -->
<div class="unit-row">
<div class="row single-unit">
<div class="unit-name col-md-4">
<i class="fa fa-angle-double-right" aria-hidden="true"></i>
Test Course 4 - Unit 2
</div>
<div class="unit-nbsp col-md-4"> </div>
<div class="unit-timestamp col-md-2">20 hours ago</div>
<div class="unit-remove col-md-2"><i class="fa fa-times" aria-hidden="true"></i></div>
</div>
</div> <!-- .unit-row -->
</div> <!-- .row-history -->
</div>
EDIT:
Current layout: https://i.sstatic.net/XTHdo.jpg
Desired layout: https://i.sstatic.net/AFMut.jpg