Skip to content

Instantly share code, notes, and snippets.

@glsee
Created April 15, 2012 08:19
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 glsee/2390890 to your computer and use it in GitHub Desktop.
Save glsee/2390890 to your computer and use it in GitHub Desktop.
MathQuill - Top Bottom Script
/**
* MathQuill - Top Bottom Script
*/
body {
}
.block {
display: inline-block;
}
.bigsymbol {
position: relative;
text-align: center;
display:block;
}
span {
margin-top: .4em;
}
sub {
position: absolute;
left: 0;
top: 100%;
width: 100%;
}
sup {
position: absolute;
left: 0;
bottom: 100%;
width: 100%;
}
<span class="block"><span class="bigsymbol"><span class="empty">123</span><sub class="empty">12</sub><sup class="empty">34</sup></span></span>
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment