What is the way to go if I want to align two card components to the same height.
<div class="container">
<div class="columns">
<div class="column">
<div class="card">
<div class="card-content">Hello World</div>
</div>
</div>
<div class="column">
<div class="card">
<div class="card-content">
Hello
<br>
<br>
World
</div>
</div>
</div>
<div class="column">
<div class="card">
<div class="card-content">Hello World</div>
</div>
</div>
</div>
</div>

Stupid question! The answer is too simple:
.card {
height: 100%;
}
Simple enough but that does not seem to work in Safari?
Confirm, this seems not to work in Safari
@danielbayerlein
Using height: 100% only works if you don't use card-footer.
@heltonteixeira
.card {
display:flex;
flex-direction: column;
}
.cart-footer {
margin-top: auto;
}
This will push your footers to the bottom.
So I'm running into something similar with this... I'm able to get all of the cards to be full height, but the card-content itself is not stretching to the bottom when I set it height: 100%. In fact, it usually goes over the card's actual height. I could just apply overflow: hidden to the cards but that seems kind of hacky, right? Is there anything else I can try?
I am facing some problem with angular flex layout I can not get the card to have the same height
.card {
height: 100%;
display:flex;
flex-direction: column;
}
.card-block{
height: 100%;
}
This will automatically push the footer to bottom, and also card-footer border will be on the right place.
.card { height: 100%; display:flex; flex-direction: column; } .card-block{ height: 100%; }This will automatically push the footer to bottom, and also card-footer border will be on the right place.
thank you @Yorer
.card-block didn't work for me, but using .card-footer did
.card {
height: 100%;
display: flex;
flex-direction: column;
}
.card-content {
height: 100%;
}
Stupid question! The answer is too simple:
.card { height: 100%; }
I don't think you should call someone stupid regardless of the question.
I don't think you should call someone stupid regardless of the question.
Unless the guy who asked was himself...
Most helpful comment
Yep base on @rogierborst
So now you can do something like :
Note : Use card inside columns