G
G
Gleb2020-06-29 16:45:04
css
Gleb, 2020-06-29 16:45:04

How to block by content?

Good afternoon. How to make a block whose size will change according to the content inside?
It is necessary to make sure that the dotted line goes to the end of the word, and not to the
PS block Markup through flex. Inline block didn't help
5ef9f05e22881903161657.png

.info-mini-map {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
    }
    .link-to-map {
      color: #ff6078;
      font-weight: 600;
      border-bottom: 1px dashed #ff6078;
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2020-06-29
@HannStar

Supply align-items: flex-start;for info-mini-map

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question