Created
October 30, 2019 00:30
-
-
Save ryancole/c96216aa2a399e07651ac4cac53189a5 to your computer and use it in GitHub Desktop.
use bootstrap to create fillable content divs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#parent { | |
height: 300px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container mt-5"> | |
<div class="row p-1 bg-primary" id="parent"> | |
<div class="col d-flex flex-column bg-warning"> | |
<div class="row mb-1 bg-secondary"> | |
<div class="col"> | |
I'd like this to be able to be whatever height based on the content | |
</div> | |
</div> | |
<div class="row bg-secondary flex-grow-1"> | |
<div class="col"> | |
I want this to just take up the remaining height of the parent row | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment