Skip to content

Instantly share code, notes, and snippets.

@pedrodelgallego
Created March 13, 2013 04:52
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 pedrodelgallego/5149467 to your computer and use it in GitHub Desktop.
Save pedrodelgallego/5149467 to your computer and use it in GitHub Desktop.
Positioning exercises
/*
Positioning exercises
*/
.container {
border: teal;
}
.box {
color: white;
text-align: center;
font-size: 22px;
background-color: red;
width: 100px;
height: 100px;
}
.box1 {}
.box2 {}
.box3 {}
.box4 {}
<div class="container">
<div class="box box1">One</div>
<div class="box box2">Two</div>
<div class="box box3">three</div>
<div class="box box4">Four</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