Dave Merrill
07/05/2024, 1:29 PMjclausen
07/05/2024, 2:29 PMalign-items
it is very easy to do: https://css-tricks.com/snippets/css/a-guide-to-flexbox/#aa-align-itemsMatt Jones
07/05/2024, 2:56 PMMatt Jones
07/05/2024, 2:56 PM<div class="holdsPanels">
<div class="panel" style="height: 80px; border: 1px solid grey;">
<div>
<strong>1</strong> style="height: 80"
</div>
</div>
<div class="panel" style="height: 40px; border: 1px solid red;">
<div>
<strong>2</strong> style="height: 40"
</div>
</div>
<div class="panel" style="height: 50px; border: 1px solid orange;">
<div>
<strong>3</strong> style="height: 50"
</div>
</div>
<div class="panel" style="height: 60px; border: 1px solid blue;">
<div>
<strong>4</strong> style="height: 60"
</div>
</div>
<div class="panel" style="height: 70px; border: 1px solid green;">
<div>
<strong>5</strong> style="height: 70"
</div>
</div>
</div>
<style>
div.panel {
margin-bottom: 10px;
break-inside: avoid;
}
div.holdsPanels {
column-count: 2;
column-gap: 10px;
}
</style>
Dave Merrill
07/05/2024, 2:59 PMbkbk
07/08/2024, 10:11 AM"A CSS question. I have a page with somewhat dynamic panels.
CSS for a panel includes float: left; width 48%; .
Net effect is two columns, with each row starting below the bottom of the taller of the two panels above.
Is there a simple css-only way to have each panel "tuck up", to start just below the panel immediately above it, instead of below the taller of the two panels above it?
I'm thinking no, but thought I'd ask ChatGPT."
Dave Merrill
07/08/2024, 1:55 PM