I have this React component:
<Card className = 'form-margin width card' zDepth='3'>
<CardText>
<strong>Test</strong><br />
This is some text
</CardText>
<CardActions>
<FlatButton label="Edit" />
<FlatButton label="Delete" />
</CardActions>
</Card>
<Card className = 'form-margin width card' zDepth='3'>
<CardText>
<strong>Test</strong><br />
This is some text
</CardText>
<CardActions>
<FlatButton label="Edit" />
<FlatButton label="Delete" />
</CardActions>
</Card>
The CSS:
.form-margin {
margin: 10px;
}
.pitch-width {
width: 40%;
}
How would I add them to the same row and apply flex-direction
and flex-wrap
? (https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
I tried
.card {
flex-direction: row;
}
but it didn't do anything.