Skip to content

Instantly share code, notes, and snippets.

@julienborrel
Created October 31, 2012 18:53
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 julienborrel/3989081 to your computer and use it in GitHub Desktop.
Save julienborrel/3989081 to your computer and use it in GitHub Desktop.
boxes floating left and vertical centering of the content for YB
/**
* 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;
}
<div class=element>
<div>t ext blabla </div>
<div class=icon>OOO</div>
</div>
{"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