I've been trying to find a solution to my problem online but with no luck. So I have html page with printing style column. So what I want is the text on 3 columns but the text need to be bottom aligned. I can easily achieve this with css column-fill: balance;
with simple text as the descendant. As soon as I have multiple elements as the content (plus with margin or padding) the text become out of balance. How can I solve this or is there any other solution to this problem?
.multicol {
background-color: beige;
padding: 10px;
column-count: 3;
column-rule: 2px dotted coral;
column-fill: balance;
}
p {
padding: 0;
margin: 0;
}
h1 {
padding: 0;
margin: 0 0 8px;
// if I set this to zero the text is balanced to the bottom. This effect is what I am looking for
// margin: 0;
}
<div class="multicol">
<div>
<h1>Some text</h1>
<p>Grant Shapps said people should only go to countries on the "amber" list in "exceptional circumstances", amid concern over the Indian Covid variant.</p>
<p>The boss of airline EasyJet said people were "confused" by the system.</p>
<p>Ministers say they can carry out 10,000 checks a day in England to ensure travellers self-isolate..</p>
</div>
</div>