Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49224

Make ion-col resize to img size

$
0
0

@cafej wrote:

I’m trying to create a layout of ion-img inside ion-col but the images are getting cut, how can I make then fit without using specific height for every screen size

	<ion-card>
		<ion-card-header text-wrap>
			Estadio Ebal Rodrigues - Sabado, 27 de agosto
		</ion-card-header>
		<ion-card-content>
			<ion-grid>
				<ion-row>
					<ion-col col-5>
						<ion-img width="100%" height="100%" src="./assets/img/Santos.png"></ion-img>
					</ion-col>
					<ion-col col-2>
						<h1>
							VS
						</h1>
					</ion-col>
					<ion-col col-5>
						<ion-img width="100%" height="100%" src="./assets/img/Municipal Grecia.png"></ion-img>
					</ion-col>
				</ion-row>
			</ion-grid>
		</ion-card-content>
	</ion-card>

This is how it’s being displayed

Posts: 9

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 49224

Trending Articles



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