Skip to content

how to use flex inside tab container for full height? #40649

Closed Answered by hacknorris-code
hacknorris-code asked this question in Q&A
Discussion options

You must be logged in to vote

asked a robot which fixed that.

actual HTML code:

    <div class="tab-content flex-grow-1 d-flex">
    <div class="tab-pane active border w-100 grid" id="view-1">
    <div class="d-flex flex-grow-1">
      <div class="col-4 g-col-4 h-100">
        1
    </div>
    <div class="col-8 g-col-8 h-100">
        <canvas class="h-100 w-100 bg-warning"></canvas>
    </div>
  </div>
    </div>
    <div class="tab-pane d-none border w-100 grid" id="view-2">
      <div class="d-flex flex-grow-1">
        <div class="col-4 g-col-4 h-100">
          2
      </div>
      <div class="col-8 g-col-8 h-100">
          <canvas class="h-100 w-100 bg-warning"></canvas>
      </div>
    </div>
    </div>
    <div 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hacknorris-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant