Hi guys, just started using ionic so I guess it’s a kinda newbee question here but I have not been able to do the following:
- div h:100% w:100%
- div 30% 100%
- image 100% 100%
- div 5% w:100%
- button 100% 100%
- div 65% w:100%
- image 50% 50%
- image 50% 50%
- image 50% 50%
- image 50% 50%
Something like this (The images must maintain aspect ratio inside the div):
This is my code:
ion-view view-title="">
<ion-pane>
<div style="height: 100%;width:100%;position:fixed;left:0;top:0">
<div style="padding:0;margin: 0;height: 35%;width:100%;">
<img ng-src="images/a_i.png" style="width:100%;height: 100%">
</div>
<div style="padding:0;margin: 0;height: 5%;width:100%;">
<button class="button button-block button-positive">
Button
</div>
<div style="padding:0;margin: 0;height: 60%;width:100%;">
<div style="padding:0;margin: 0; width: 50%;height: 50%;float: left;">
<img ng-src="images/a_i.png" style="width:100%; height: 100%;">
</div>
<div style="padding:0;margin: 0; width: 50%;height: 50%;float: left;">
<img ng-src="images/b_i.png" style="width:100%; height: 100%;">
</div>
<div style="padding:0;margin: 0; width: 50%;height: 50%;float: left;">
<img ng-src="images/a_i.png" style="width:100%; height: 100%;">
</div>
<div style="padding:0;margin: 0; width: 50%;height: 50%; float: left;">
<img ng-src="images/b_i.png" style="width:100%; height: 100%;">
</div>
</div>
</div>
</div>
</ion-pane>
</ion-view>
The problem I see is that the on-nav-bar and ion-tabs is part of the 100% of my main container, Images range below these.
Any ideas?