Created
October 31, 2012 18:53
-
-
Save julienborrel/3989081 to your computer and use it in GitHub Desktop.
boxes floating left and vertical centering of the content for YB
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
/** | |
* boxes floating left and vertical centering of the content for YB | |
*/ | |
html{ | |
background: white; | |
min-height: 100%; | |
} | |
body{ | |
} | |
.element { | |
position: absolute; | |
width: 0px; | |
height: 0px; | |
top: 40%; | |
left: 20%; | |
} | |
.element div { | |
width: 100px; | |
border: 1px solid; | |
right: -50px; | |
top: 40px; | |
position: absolute; | |
} | |
.element .icon { | |
top: -30px; | |
right: -30px; | |
width: 60px; | |
height: 60px; | |
} |
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=element> | |
<div>t ext blabla </div> | |
<div class=icon>OOO</div> | |
</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
{"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