Skip to content

Instantly share code, notes, and snippets.

@zjiekai
Created December 7, 2015 06:34
Show Gist options
  • Save zjiekai/78cbdc33937d8ab10acb to your computer and use it in GitHub Desktop.
Save zjiekai/78cbdc33937d8ab10acb to your computer and use it in GitHub Desktop.
Untitled
.b1 {
background-color: #ccc;
height: 200px;
width: 400px;
}
.b4 {
background-color: #a00;
height: 80%;
width: 300px;
margin-left: 50px
}
.b2 {
background-color: #FFCE54;
height: 30px;
}
.b3 {
background-color: #967ADC;
height: calc(100%-10px);
margin-left: 50px;
width: 200px;
}
<div class="b1">
<div class="b4">
<div class="b2">
</div>
<div class="b3">
</div>
</div>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment