Last active
July 21, 2017 19:49
-
-
Save danielmascena/457971a40466de82a2e79a38c90cce41 to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*{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;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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