I'm wondering what is the display
mode of a child element that is inside a flexbox container.
Is it inline-block
? Or it doesn't have anything to do with the usual display modes?
.flexbox {
display: flex;
}
span {
width: 200px;
}
<div class="flexbox">
<span>child</span>
</div>
For example, the child span
is affected by the width
, so it isn't inline
anymore.
I thought about this when I saw a span
that was being affected by the width
and it didn't have any display
set, according to the Chrome inspector. Then I realised that it was inside a flexbox container. But, shouldn't the inspector tell me that the display was changed? (Changed to what?, that's the question).