Skip to content

Instantly share code, notes, and snippets.

@benjohnson
Created October 17, 2012 17:20
Show Gist options
  • Save benjohnson/3906838 to your computer and use it in GitHub Desktop.
Save benjohnson/3906838 to your computer and use it in GitHub Desktop.
Untitled
.bound {
position: relative;
z-index: auto;
}
.popover {
width: 100px;
height: 100px;
background: blue;
position: absolute;
left: -15px;
top: 15px;
z-index: 1000;
}
.box {
background: red;
width: 200px;
height: 200px;
z-index: 100;
}
.row:before,
.row:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.row:after {
clear: both;
}
.row {
*zoom: 1;
}
<div class="row">
<div class="bound">
<div class="popover">Yo Yo</div>
</div>
</div>
<div class="row">
<div class="bound">
<div class="box">I'm a box.</div>
</div>
</div>
{"view":"split-vertical","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