Skip to content

Instantly share code, notes, and snippets.

@danielmascena
Last active July 21, 2017 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmascena/457971a40466de82a2e79a38c90cce41 to your computer and use it in GitHub Desktop.
Save danielmascena/457971a40466de82a2e79a38c90cce41 to your computer and use it in GitHub Desktop.
Untitled
*{box-sizing: border-box;}
body{font-family: Arial, sans-serif;}
.container {
background: #ccc;
border: 1px solid;
}
.container:after {
content: '';
display: table;
clear:both;
}
[class^='el'] {
padding: 10px;
float: left;
width: 50%;
}
.el-1 {
background: #0cf;
}
.el-2 {
background: #0fc;
height: 50px;
}
.main {
background: #cf0;
border: 1px solid;
height: 100px;
width: 100px;
margin: 10px;
}
#big-box {
background: lightblue;
position: relative;
line-height:0;
overflow: auto;
}
.outer{overflow:hidden;}
.box{padding: 20px; background: lightgray; margin: 20px 0; width:100%;}
.box:first-child{position:absolute;top:50px;background: red;}
<div class="container"> <div class="el-1">A long string of stuff here...</div> <div class="el-2">A short string of stuff here...</div>
</div>
<div class="main"> Some stuff here...</div>
<div id="big-box"><div class="box"></div><div class="box"></div></div><div class="box"></div><div class="box"></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment