Within a flexbox a
element, I have a div
that contains a span
with the class .time-pretext
:
<a class="option-container option-edit-time" href="#">
<div class="option-icon"><canvas id="time-canvas" width="128" height="128"></canvas></div>
<div class="option-text"><span class="time-pretext">I have</span>60 minutes</div>
</a>
The .option-text
element is styled with flex-direction: column
. This causes the span
to only accept block display options (block
or -webkit-box
) and not inline options (inline-block
). Why is this happening?
Interestingly, this issue arises only in the latest flexbox implementation (display: flex
), and not in the original one (display: -webkit-box
).