I have experienced this behavior recently and I can't figure it out what causes it. Every text between <strong></strong>
behaves as columns(?) inside my flexbox container.
Please help I'm completely lost!
HTML:
<div id="item_desc" >
<strong>Text in strong</strong>
nulla a laoreet nibh, at placerat leo. Proin uis condimentum ligula, ut
viverra turpis. Morbu lamcorper consequat gravida. Aenean vestibulum urna id
purus vulputate landit. Vivamus eleifend, erat quis dapibus pulvinar, eros
justo commodo urpis, molestie commodo orci nisi maximus diam.
Pellentesque posuere pulvinar malesuada. Nulla eu vestibulum erat.
Duis sit amet turpis id tellus eleifend faucibus nec non tellus.
</div>
CSS:
#item_desc {
border:1px solid red;
padding: 15px 20px 15px 0px;
min-height: 156px;
width:100%;
display: flex;
justify-content: center;
align-items: center;
text-align:center;
}
I just wanted to position my text vertically and horizontally center. This container div is inside a flexbox column parent <- maybe this is the culprit, but I can't figure it out.
( PS: The preview created in Chrome )