Skip to content

Instantly share code, notes, and snippets.

@pennyfx
Created November 30, 2012 20:22
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 pennyfx/4178331 to your computer and use it in GitHub Desktop.
Save pennyfx/4178331 to your computer and use it in GitHub Desktop.
Untitled
.viewport{
display:inline-block;
border: solid 1px black;
overflow:hidden;
border-radius: 15px;
}
.nob{
background-color:red;
border-radius:15px;
width:20px;
}
.table:after{
content: "after";
display:table-cell;
width:50%;
text-align:center;
}
.table:before{
content: "before";
display: table-cell;
width:50%;
text-align:center;
}
.table{
display: table;
-moz-transform: translate(0,0);
}
<div class="viewport"><div class="table"><div class="nob">&nbsp;</div></div></div>
// alert('Hello world!');
{"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