I am trying to place timeAgo
ie content 22 seconds ago
just below the content info
. But for the style that I use, it timeAgo
pushes to the right.
Here is my markup -
.container {
overflow:auto;
}
.post {
height:120px;
width:700px;
margin:120px auto;
background-color:#EFEFEF;
border:1px solid #79CEF4;
display:flex;
justify-content:flex-start;
}
.photo {
width:80px;
height:80px;
background-color:#99E058;
margin:10px 10px 10px 20px;
align-self:center;
}
.info {
margin: 25px 10px 10px 20px;
align-self:center;
}
.timeAgo {
margin: 80px 10px 10px 20px;
font-size:11px;
}
<div class="container">
<div class="post">
<div class="photo"></div>
<div class="info"><p>This is just a plain simple message!</p></div>
<div class="timeAgo">22 seconds ago</div>
</div>
</div>
Run codeHide result
user4298677
source
share