There is a diva, inside of which are several little divas. You need to center them vertically and press to the right edge.

It turned out to display: flex; using display: flex; How can I pizhat them to the right edge? margin-left: auto; indents between divas, and I need to press them to the right edge without indents between each other.

  • Make them float: right; , but their parent will need to give padding-top: calc (50% is half the height of a diva). And flex can be removed. - user190134
  • @ user190134 The height of the parent diva is not fixed, it is determined by the content, I do not know the exact value. float-right has no effect, and padding-top: calc (50%) applied to the parent - strongly stretches it vertically. - Rumata
  • The same block that was given display: flex; set justify-content: flex-end; - stackanon
  • @stackanon Thank you for what you need! If issue as an answer - I can accept. - Rumata

1 answer 1

The block that was given display: flex; set justify-content: flex-end;