I am creating an ionic app, in that I need to add a four images in my home page in two row and each row has two images. The images size is 296*296. I have tried the below code,
index.html
<ion-nav-view class="container" > </ion-nav-view> Home.html
<ion-view view-title="HOME"> <ion-content> <div class="row" > <div class="col-md-6 " id="img1"> <img src="img/hard.png" class="img-responsive " id="img1" > </div> <div class="col-md-6" id="img1"> <img src="img/soft.png" class="img-responsive " id="img1"> </div> </div> <div class="row" > <div class="col-md-6 " id="img1"> <img src="img/welcome.png" class="img-responsive " id="img1" > </div> <div class="col-md-6" id="img1"> <img src="img/title.png" class="img-responsive " id="img1"> </div> </div> </ion-content> </ion-view> CSS
#img1{ width: 100%; height: auto }