Skip to content

Instantly share code, notes, and snippets.

@shabunc
Created January 25, 2012 14:20
Show Gist options
  • Select an option

  • Save shabunc/1676472 to your computer and use it in GitHub Desktop.

Select an option

Save shabunc/1676472 to your computer and use it in GitHub Desktop.
Untitled
.boxA {
background: -moz-element(#boxB);
width: 100px;
height: 100px;
display: table;
text-align: center;
border: 1px solid red;
}
.boxA div{
display: table-cell;
vertical-align: middle;
}
.boxB {
background: -moz-element(#boxA);
width: 100px;
height: 100px;
display: table;
text-align: center;
border: 1px solid pink;
}
.boxB div {
display: table-cell;
vertical-align: middle;
}
<div class="boxA" id="boxA">
<div>BOX A</div>
</div>
<div class="boxB" id="boxB">
<div>
BOX B
</div>
</div>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment