<script src="https://use.fontawesome.com/2a2c577e07.js"></script>
<div class="parent-flex">
<div class="class1">Class 1</div>
<div class="class2">
<img src="http://farm4.static.flickr.com/3140/3506456511_43787ce7e6.jpg" alt="">
<h4> The author | </h4>
<ul>
<li><a href="#"><i class="fa fa-home" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-comment" aria-hidden="true"></i></a></li>
</ul>
<p>The dummy text text</p>
</div>
</div>
CSS
.parent-flex {
display: flex;
}
.class2 {
margin-left: auto;
}
ul {
list-style-type: none;
}
SITUATION: .class2 is the 2nd child of a parent, which is a flex. .class 2 has items like img h2 ul with fontawesome items p
I want all the items to align in one line. Is there any flex property that can achieve this effect quickly, or perhaps another method for responsiveness?