Where ever I have a bunch of list cards and tabs, even if i have “has-tabs” in they don’t sit well and the bottom most card is cut off by ~20px.
<ion-content class="has-header has-tabs">
<div class="list card">
...
</div>
<div class="list card">
...
</div>
<div class="list card">
...
</div>
</ion-content>
fmy_1
June 6, 2014, 4:23pm
2
Yes, I noticed this error too, there is a “Go Hourse” way or check better on css style, but If you put one more “item” empty inside your card, maybe It will solve !!
That sorta works . . . Thanks.
Is this being fixed in the next beta?
Has there been any progress on this within ionic? Maybe it hasn’t made it to the docs yet? I also notice that the bottom is a bit cut-off for cards.
Norm
October 22, 2014, 6:53pm
5
I get by with just 2 line breaks before the content tag
... <br/><br/></ion-content>
1 Like
Norm
February 10, 2015, 5:04pm
7
I imagine a “fix” will cause more problems now since everyone has gotten by this far with their own solutions, i.e. double line breaks or css margin/padding
This worked splendidly for me!
usp
April 25, 2016, 9:05am
9
The vertical margin of .card class causes the problem.
I wrapped each card with .my-card-wrapper div and removed the margin of the card like this:
.my-card-wrapper {
padding: 10px;
}
.my-card-wrapper .card {
margin: 0;
}
<div class="my-card-wrapper">
<div class="card">
Your content here.
</div>
</div>
<div class="my-card-wrapper">
<div class="card">
Your content here.
</div>
</div>
<div class="my-card-wrapper">
<div class="card">
Your content here.
</div>
</div>
<ion-content>
<ion-item>
<ion-label class="list card">...</ion-label>
</ion-item>
<ion-item>
<ion-label class="list card">...</ion-label>
</ion-item>
</ion-content>