Tricky question about aligning row & cols #41033
-
Hello! Here is my issue: I have two rows, The first row the entirety of it is a 'section'. The second row, there is 3 columns which are 3 different sections. All those sections needs to be aligned with a background. I found a way to do it, but it is super ugly and probably not something I would go in production with. I also need gutters betwen my sections Here is a minimal example of my problem, that I've solved but very bad. Hopefully someone can help me. Ive attached in this zip a demo of the problem and a demo of the solution I found (apparently we cant upload html files) Edit by maintainer: removed the zip file |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello @JustSxm |
Beta Was this translation helpful? Give feedback.
-
No worries Problem: <div class="vh-100 bg-black container-fluid">
<div class="p-2">
<div class="row bg-white">
<div class="col">t</div>
<div class="col">t</div>
<div class="col">t</div>
</div>
<div class="row mt-2">
<div class="col-3">
<div class="bg-white">a</div>
</div>
<div class="col-6">
<div class="bg-white">a</div>
</div>
<div class="col-3">
<div class="bg-white">a</div>
</div>
</div>
</div>
</div> |
Beta Was this translation helpful? Give feedback.
Not entirely sure to have understood what is expected in terms of result, but tried something real quick to have the sections matching on the left/right side, and the content (letters) at the same level: https://codepen.io/julien-deramond/pen/vYoPQOV:
Even if it's not the exact right solution for your use case, hope it …