Skip to content

Tricky question about aligning row & cols #41033

Closed Answered by julien-deramond
JustSxm asked this question in Q&A
Discussion options

You must be logged in to vote

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:

<div class="container-fluid px-4 py-5" style="background-color: #fd0">
  <div class="row bg-info gap-2">
    <div class="col">t</div>
    <div class="col">t</div>
    <div class="col">t</div>
  </div>
  <div class="row bg-yellow mt-2 gap-2">
    <div class="col bg-danger">a</div>
    <div class="col bg-danger">a</div>
    <div class="col bg-danger">a</div>
  </div>
</div>

Even if it's not the exact right solution for your use case, hope it …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@julien-deramond
Comment options

Answer selected by JustSxm
@JustSxm
Comment options

@julien-deramond
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants