Предполагая, что у вас будет несколько строк, если вы хотите обернуть текст вокруг даты, вам придется использовать float: right
, но если вы не возражаете, поместив дату поверх остальной части текста, вы можете используйте position: absolute
и поместите его в нижний правый угол.
.flex-container {
display: flex;
flex-direction: row;
width: 300px;
margin: auto;
padding: 10px;
color: #fff;
background-color: #177CAB;
position: relative;
font-size: 22px;
line-height: 1.5;
}
.flex-container .secondText {
background-color: #E1B639;
position: absolute;
right: 10px;
bottom: 10px;
padding: 0px 10px 0px 10px;
}
<div class="flex-container">
<span class="firstText">
some texrgrgt here.. soehme text here..
someehtext here.. so wtwtg wtg rme text here..
some text here.. some text here..
<span class="secondText">13:30</span>
</span>
</div>