Im fighting with a special problem for hours now. I have got the following html code:
<ion-view class="menu-content" view-title="Postkarte">
<ion-content>
<div class="postcard-container">
<div class="postcard">
</div>
</div>
</ion-content>
</ion-view>
And this 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;
width: 90%;
}
The result is the the following:
That means: The parent element does not seem to have a height so the 100% height of my div element is ignored. Does somebody know whats causing the problem?