I am new to material ui . I want all these cards in the image to be same height but can't manage to do so :/ How Can I make cards of same height? I have tried adding the height 100% to card component still no luck This is my code
News.js
const useStyles = makeStyles({
fullHeightCard: {
height: "100%",
},
});
const News = (props) => {
const { title, description,urlToImage } = props.articles;
const classes = useStyles();
return (
<Container fixed>
<Card className={classes.fullHeightCard} >
<CardActionArea>
<CardMedia
component="img"
alt="Contemplative Reptile"
height="100%"
image={urlToImage}
title="Contemplative Reptile"
/>
<CardContent>
<Typography gutterBottom variant="h5" component="h2">
{title}
</Typography>
<Typography variant="body2" color="textSecondary" component="p">
{description}
</Typography>
</CardContent>
</CardActionArea>
<CardActions>
<Button size="small" color="primary">
Share
</Button>
<Button size="small" color="primary">
Learn More
</Button>
</CardActions>
</Card>
</Container>
);
};
export default News;