Created
October 27, 2013 19:09
-
-
Save jklm313/7186624 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
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
position: relative; | |
} | |
div { | |
/* for demo */ | |
background: indianred; | |
color: white; | |
border: 1px solid; | |
} | |
.a { | |
float: left; | |
} | |
.c { | |
float: right; | |
} | |
.a, .c { | |
/* for demo */ | |
width: 25%; | |
} | |
.b { | |
position: absolute; | |
right: 0; left: 0; | |
margin: auto; | |
/* for demo */ | |
width: 50%; | |
height: 1000px; | |
} |
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='b'>B</div> | |
<div class='a'>A</div> | |
<div class='c'>C</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":"separate","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