I have 3 rows in my layout(20% 60% 20%) and I want to insert images and some text in that layout and I have done. but I want to know what I have done is correct or not?
I should use flexbox or not in this case?
I tried this in ionic 3 but I don know whether it is correct or not please help me with this ionic html:
<ion-content padding>
<ion-grid>
<ion-row class="myrow">
<ion-col class="first mycol">
<!-- images in col -->
<ion-row>
<div class="firstrh">
<ion-col col-4 col-md-6 col-lg-4>
<img src="../../assets/imgs/3.jfif">
</ion-col>
<ion-col col-4 col-md-6 col-lg-4>
<img src="../../assets/imgs/4.jfif">
</ion-col>
<ion-col col-4 col-md-6 col-lg-4>
<img src="../../assets/imgs/5.jfif">
</ion-col>
</div>
</ion-row>
</ion-col>
</ion-row>
<ion-row class="myrow">
<ion-col col-4 class="second border mycol">
<!-- first col -->
<ion-row>
<ion-col col-12>
<p>Something that has to be written here</p>
</ion-col>
</ion-row>
<ion-row>
<ion-col col-12>
<p>Something that has to be written here</p>
</ion-col>
</ion-row>
<ion-row>
<ion-col col-12>
<p>Something that has to be written here</p>
</ion-col>
</ion-row>
</ion-col>
<ion-col col-8 class="border mycol">
<!-- second col -->
<ion-row>
<div class="thirdrh">
<ion-col col-6 col-md-6 col-lg-4>
<img src="../../assets/imgs/1.jfif">
</ion-col>
<ion-col col-6 col-md-6 col-lg-4>
<img src="../../assets/imgs/2.jfif">
</ion-col>
</div>
</ion-row>
</ion-col>
</ion-row>
<ion-row class="myrow">
<ion-col class="third">
</ion-col>
</ion-row>
</ion-grid>
</ion-content>
ionic css:
page-responsive {
width:100vh;
height:100vh;
.scroll-content{
padding:0!important;
margin:0;
}
border:1px solid blue;
.myrow{
border:1px solid red;
position: relative;
}
.mycol{
border:1px solid green;
}
.firstrh{
height:20vh!important;
display: flex;
flex-flow:row wrap;
img{
width:100%;
height:18vh;
}
}
.thirdrh{
height:60vh!important;
display: flex;
overflow:hidden;
img{
width:100%;
height:100%;
}
}
ion-col.first{
height:20vh;
width:100%;
}
ion-col.second{
height:60vh;
width:100%;
}
ion-col.third{
height:20vh;
width:100%;
}
.border{
border:1px solid gray;
}
}
layout check