Could this be a compatibility issue with Firefox?
The layout appears fine in Chrome or when I take out columns: 2
, then it also displays correctly in Firefox.
div {
width: 500px;
padding: 2rem;
display: inline-flex;
align-items: baseline;
border: 1px solid red;
}
h1, p {
margin: 0;
padding: 0
}
p {
margin-left: 2rem;
columns: 2;
}
<div>
<h1>Lorem ipsum dolor sit amet.</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad qui repudiandae ipsum delectus fugiat esse voluptates numquam nesciunt, officiis, repellendus consequuntur optio. Tempora magni aliquam, nulla fuga quam deserunt veritatis.</p>
</div>