Skip to content

Instantly share code, notes, and snippets.

@Francisc
Created May 21, 2014 19:01
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 Francisc/f3acee81fd6785529fd5 to your computer and use it in GitHub Desktop.
Save Francisc/f3acee81fd6785529fd5 to your computer and use it in GitHub Desktop.
Untitled
.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;
}
<div class="container clearfix">
<div class="first">First element</div>
<div class="second">Second Element</div>
</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