This is the layout I'm trying to achieve:
I'm currently doing it by:
HTML
<div class="ft-Footer_Columns">
<div class="ft-Footer_Column ft-Footer_Column-about">
<h4 class="ft-Footer_Title">Title 1</h4>
<p class="ft-Footer_Text">Text 1</p>
</div>
<div class="ft-Footer_Column ft-Footer_Column-links">
<h4 class="ft-Footer_Title">Title 2</h4>
<p class="ft-Footer_Text">Text 2</p>
</div>
<div class="ft-Footer_Column ft-Footer_Column-contact">
<h4 class="ft-Footer_Title">Title 3</h4>
<p class="ft-Footer_Text">Text 3</p>
</div>
</div>
CSS
.ft-Footer_Columns {
display: grid;
grid-column-gap: calc(20px * 2);
grid-template-columns: calc(5 / 12)fr calc(4 / 12)fr calc(3 / 12)fr;
}
This seems like quite a hacky way to achieve what I want.
Ideally I want to be able to do:
.ft-Footer_Columns {
display: grid;
grid-column-gap: calc(20px * 2);
grid-template-columns: calc(5 / 12 * 100%) calc(4 / 12 * 100%) calc(3 / 12 * 100%);
}
But this currently does 100% + ((20px * 2) * 2).
How would I achieve this percentage / fractal based layout without the hacky calc()FR way?
