I’ve just started using ionic, and I’ve noticed that cards are very nicely designed. I was just wondering though how I’d go about making sure that the height of cards always match that of the content height.
<div class="card" style="height:100%">
<div class="item item-text-wrap">
This is a basic Card which contains an item that has wrapping text.
</div>
</div>
I’ve tried taking the html from the css overview and placing height:100% on the card div (like above), but that doesn’t seem to stretch the card to the height of the content.
Did you end up finding an answer to this?
I agree that cards are very well designed. They are a nice way to encapsulate everything inside it.
I just need the card to stretch so that it fills the entire content height.
@rtomaselli I sadly wasn’t able to find an answer to this - and at the time I recall I was told by the Ionic team that this was a common disadvantage of html in general and had my issue closed.
If you happen to open an issue about this on github, if you post the link here, I’m more than willing to +1 it to try and get this more interest. This feature would definitely be a great addition.
@mbuster Thanks for the codepen - my answer was a bit vague.
The question is about getting the item inside the card to fill the whole content:
<div class="card" style="height:100%">
<div class="item item-text-wrap">
This is a basic Card which contains an item that has wrapping text.
</div>
</div>