for some reason
the width of the div is 100% and if i set it to auto, nothing changes. tried display: block;
and still nothing.
what I have in
The following options can change the behavior of width: auto
from using the available container width to so called shrink-to-fit algorithm:
Assuming you need that the blocks to stay in the block formatting context of the normal flow (i.e. to go one after another vertically as usually, just have the width of their content), I suppose that in this case display: table will be the best solution.