Created
May 6, 2013 20:58
-
-
Save gcyrillus/5528136 to your computer and use it in GitHub Desktop.
fake font-stretch
This file contains hidden or 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
html {color:blue;color:rgba(0,50,150,0.75);text-align:center;font-family:georgia;font-weight:bold; | |
background:white;display:table;height:100%;width:100%;border-spacing:1em;} | |
body {display:table-cell;vertical-align:middle;background:gray;border-radius:5px;box-shadow:0 0 5px;border:solid;} | |
ol,ul {display:inline-block;border:solid;border-radius:5px;text-align:left;list-style-type:decimal;background:beige;padding:5px 5px 5px 2.5em;margin:1em 0;} | |
/* fake font-stretch */ | |
/* + 2 pixel width */ | |
ol {letter-spacing:3px;text-shadow:1px 0 0px blue, -1px 0 0px blue;} | |
/* + 1 pixel width */ | |
li:nth-child(2n) {text-shadow:1px 0 0px blue;letter-spacing:1px;} |
This file contains hidden or 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
<h1>fake font-stretch => text-shadow & letter-spacing</h1> | |
<ol> | |
<li>Lorem ipsum dolor sit amet elit.</li> | |
<li>Aliquam tincidunt mauris eu risus.</li> | |
<li>Aliquam tincidunt mauris eu risus.</li> | |
</ol> | |
<ul> | |
<li>Lorem ipsum dolor sit amet elit.</li> | |
<li>Aliquam tincidunt mauris eu risus.</li> | |
<li>Aliquam tincidunt mauris eu risus.</li> | |
</ul> |
This file contains hidden or 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
// alert('Hello world!'); |
This file contains hidden or 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","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