Skip to content

Instantly share code, notes, and snippets.

@jordangray
Created September 28, 2012 08:25
Show Gist options
  • Save jordangray/3798630 to your computer and use it in GitHub Desktop.
Save jordangray/3798630 to your computer and use it in GitHub Desktop.
Rendering text at less than minimum browser font size
/* Rendering text at less than minimum browser font size */
body {
background: #ccc;
}
.preview {
background: #fff;
border: 1px solid #ccc;
box-shadow: 5px 5px 5px rgba(0,0,0,.5);
margin: 5px;
position: relative;
height: 74px;
width: 53px;
}
.preview .page {
height: 277px;
width: 190px;
padding: 10px;
position: absolute;
transform: scale(0.25);
transform-origin: 0 0;
}
<div class="preview">
<div class="page">
<h1>Really small text</h1>
<p>This text should be <em>really</em> small!</p>
</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