I have a following structure:
<div class="1">
<div class="2">
2.
</div>
<div class="3">
3.
</div>
<div class="4">
very long line of text
</div>
</div>
So div
1 has display: block
, all the others have display: inline
. My goal is to make this very long line of text being displayed like that:
2. 3. very long
line of text
If I try making div
4 an inline-block
or inline-flex
and set margin
and text-indent
properties, then it kinda does what I want, but it also moves whole text down one line like this:
2. 3.
very long
line of text
How do I do that properly?