How to align element?

Have a container that has display: flex. It has text. How to align text on the right edge and make the padding of the container? If the item would be a block, it would be possible to do float: right b ask margin, but as flexbox? all thanks for answers))
March 23rd 20 at 19:28
2 answers
March 23rd 20 at 19:30
justify-content: flex-end margin
March 23rd 20 at 19:32
.parent {
display: flex;
justify-content: flex-end;
.text {
text-align: right;

Find more questions by tags FlexboxHTMLCSS