Created
May 21, 2014 19:01
-
-
Save Francisc/f3acee81fd6785529fd5 to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or 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
.container .first | |
{ | |
float:right; | |
width:100%; | |
} | |
.container .second | |
{ | |
float:right; | |
width:100%; | |
} | |
/*Clearfix*/ | |
.clearfix:before, | |
.clearfix:after | |
{ | |
content:' '; | |
display:table; | |
} | |
.clearfix:after | |
{ | |
clear:both; | |
} | |
/*Irrelevant, visual only*/ | |
.container | |
{ | |
background:gainsboro; | |
color:white; | |
padding:10px; | |
font-family:Arial; | |
font-size:1.2rem; | |
} | |
.container>* | |
{ | |
margin:20px 0; | |
padding:10px; | |
box-sizing:border-box; | |
} | |
.container .first | |
{ | |
outline:2px solid firebrick; | |
} | |
.container .second | |
{ | |
outline:2px solid goldenrod; | |
} |
This file contains hidden or 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 clearfix"> | |
<div class="first">First element</div> | |
<div class="second">Second Element</div> | |
</div> |
This file contains hidden or 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 hidden or 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