Skip to content

Instantly share code, notes, and snippets.

@tushartuteja
Created July 5, 2019 15:16
Show Gist options
  • Save tushartuteja/14bf8daa684a02c87f01d68cd9fcd7ff to your computer and use it in GitHub Desktop.
Save tushartuteja/14bf8daa684a02c87f01d68cd9fcd7ff to your computer and use it in GitHub Desktop.
body {
margin: 0px;
}
.parent {
display: flex;
background-color: yellow;
width: 100px;
}
.one {
width: 50px;
background-color: red;
height: 100px;
flex-grow: 1;
}
.two {
width: 50px;
background-color: blue;
height: 100px;
flex-grow: 2;
}
.three {
width: 50px;
background-color: green;
height: 100px;
flex-grow: 3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment