I have a problem which causes headache for me for hours now. I have the following html:
<ion-view class="menu-content" view-title="Postkarte">
<ion-content>
<div class="postcard-container">
<div class="postcard">
</div>
</div>
</ion-content>
</ion-view>
And the following css:
.postcard-container {
display: table;
position: absolute;
background-color: yellow;
height: 100%;
width: 100%;
}
.postcard {
display: table-cell;
vertical-align: middle;
background-position: center center;
background-image: url("../img/frames/postcard_00.png");
background-size: contain;
background-repeat: no-repeat;
}
The result is this:
So the 100% width is working but the 100% height is ignored. Why?