M
M
mishapsv2018-06-11 13:16:09
css
mishapsv, 2018-06-11 13:16:09

How to pin an element to the text inside a tag?

Here is an example .
If the text fits on one line, then the element is pressed against it to the right.
That's how it's intended.
But if the text is long and is transferred to a new one, then a space is formed between the text and the element.
How can you push the element to the text in both situations?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
boga-net, 2018-06-11
@boga-net

Put the text in one container and the element in another. Set their parent to display: flex
If I understand you correctly, do you want the element to always be at the top and to the right of the text?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question