Created
September 28, 2012 08:25
-
-
Save jordangray/3798630 to your computer and use it in GitHub Desktop.
Rendering text at less than minimum browser font size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="preview"> | |
<div class="page"> | |
<h1>Really small text</h1> | |
<p>This text should be <em>really</em> small!</p> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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