Skip to content

Instantly share code, notes, and snippets.

@sedera-tax
Created June 20, 2018 06:52
Show Gist options
  • Save sedera-tax/d30d250a9b5aee5d35ac0722eb3d74ec to your computer and use it in GitHub Desktop.
Save sedera-tax/d30d250a9b5aee5d35ac0722eb3d74ec to your computer and use it in GitHub Desktop.
Flag flex
<div class="flag">
<div id="box-container-mg">
<div id="box-1-mg"></div>
<div id="box-2-mg"></div>
<div id="box-3-mg"></div>
</div>
<div id="box-container">
<div id="box-1"></div>
<div id="box-2"></div>
</div>
</div>
.flag {
display: flex;
margin-top: 50px;
}
#box-container {
background: white;
display: flex;
height: 400px;
justify-content: space-between;
border: solid 2px black;
width: 48%;
}
#box-1 {
background-color: #003399;
width: 32%;
height: 100%;
}
#box-2 {
background-color: #ee0A30;
width: 32%;
height: 100%;
}
#box-container-mg {
margin: 0 20px 0 0;
display: flex;
height: 400px;
flex-flow: column;
flex-wrap: wrap;
border: solid 2px black;
width: 48%;
}
#box-1-mg {
background-color: white;
width: 40%;
height: 100%;
}
#box-2-mg {
background-color: red;
width: 60%;
height: 50%;
}
#box-3-mg {
background-color: green;
width: 60%;
height: 50%;
}
@media (max-width: 750px) {
.flag {
margin-top: 100px;
}
#box-container, #box-container-mg {
height: 200px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment