Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Responsiveness in a n-rows x 2-cols grid

$
0
0

@vespinasgmailcom wrote:

I have a grid with two columns, that shows a card on each column for each row. Then the device is in landscape it looks ok:

But when I rotate the device (to portrait mode) it stacks all rows except for the last one:

05%20PM

The grid system is a simple one with almost no styling but for the last cell:

<ion-grid>
  <ion-row>
    <ion-col><app-custom-card></app-custom-card></ion-col>
    <ion-col><app-custom-card></app-custom-card></ion-col>
  </ion-row>
  <ion-row>
    <ion-col><app-custom-card></app-custom-card></ion-col>
    <ion-col style="margin: auto; text-align: center !important;">
       <ion-icon name="add-circle" color="medium"></ion-icon>	
    </ion-col>
  </ion-row>
</ion-grid>

I am sure this can be fixed with a responsive property (sm, lg, xs) but I can’t figure it out how to make it work right (all columns stacked per row).

TIA

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>