I came across a minor issue with flex-direction and the behavior of < br> in different Browsers. In Chrome I get a space between my < strong> element and the text while Firefox seems to fully ignore them. Wrapping the Lorem Ipsum in a < div> or < span> or adding multiple < br> won´t fix it. I also researched about the topic but can not find a solution on it.
Here is a very simply HTML + CSS:
.flex-col{
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
<div class="flex-col">
<strong>Hello World!</strong>
<br/><br/><br/>
<div>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</div>
</div>
https://codepen.io/Mosl/pen/MWbOOba
Would be happy about tips. I tried various things (even shitfixes) like targeting the < br> directly and making it display block / giving it a height. Wrapping the text in a separated < div> / < span> or whatever.
Sure I can build it differently, but this is done over the CMS and not a static code. So variants like this could happen easily. And to be honest even if it was fixable on a different way, but would be nice to understand it anyway :)
Thanks in advance!