My problem is with the CSS column property. I remembered there's a way to prevent blank (<br>
) lines to end up as the right column's first, row but I can't seem to figure it out.
The CSS that creates the column-effect:
@media (min-width: 1100px) {
.inner_p, .introtext p {
column-count: 2;
break-after: auto;
column-gap: 3em;
}
}
The HTML:
<p>With an article, and a couple <br><br>s inside. These <br>s are IMO what sometimes shows up as first element in the right column, causing the following appearance:</p>
xxxxxxx < br >
xxxxxxx xxxxxx
xxxxxxx xxxxxx
xxxxxxx xxxxxx
This looked kind of messy!
What I would want to achieve is:
xxxxxxx xxxxxx
xxxxxxx xxxxxx
xxxxxxx xxxxxx
xxxxxxx
I've already accepted Ian M's answer because it definitely put me on the right track, however, one minor problem remains:
Everything is good when the first-child p ends right at the bottom of the left col. But when it extends into the right column, it continues (correctly) at the top of the column, but (and this is the minor glitch) due to its margin-bottom:0 (to prevent a blank first row in case of a first p that ends right at the bottom of the left col), it now doesn't have a margin to the following, second p.
Visually speaking:
1st p : aaa 2nd p: bbb
aaaaa bbbbb
aaaaa bbbbb
aaaaa ...
√
but
aaaaa aaaaa
aaaaa bbbbb
aaaaa bbbbb
No margin between a and b!
A conundrum.