Here is an example of the problem:
.parent { border: 1px solid red; width: 200px; display: flex; } .content { border: 1px solid orange; } <div class="parent"> <span class="content"> Hello!!! Hello!!! Hello!!! Hello!!! Hello!!! Hello!!! Hello!!! Hello!!! Hello!!! Hello!!! Hello!!! Hello!!! Hello!!! </span> <div> @@@ </div> </div> here "@@@" is not adjacent to the text, the width of the 'content' diva is more than we would like. word-break: break-all - not suitable for the condition of the problem.
inlineelements, as soon as the container was assigneddisplay:flexchildren stopped beinginlineorblock, although not, chrome, for example, shows that everyone now hasdisplay:block- Grundy