Skip to content

Instantly share code, notes, and snippets.

@haggen
Created March 31, 2014 18:54
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 haggen/9899512 to your computer and use it in GitHub Desktop.
Save haggen/9899512 to your computer and use it in GitHub Desktop.
Untitled
body {
font: 16px/1.4 sans-serif;
}
div {
width: 6em;
height: 12em;
background: pink;
font-size: 0;
letter-spacing: -1px;
}
div::before {
content: "";
display: inline-block;
vertical-align: middle;
width: 0;
height: 100%;
min-height: inherit;
max-height: inherit;
padding: 0;
}
p {
display: inline-block;
font-size: 1rem;
letter-spacing: normal;
}
<div>
<p>Lorem ipsum dolor sit amet</p>
</div>
// alert('Hello world!');
{"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