Skip to content

Instantly share code, notes, and snippets.

@francisrupert
Created May 16, 2014 18:48
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 francisrupert/1f5f90f93c9d16baaa91 to your computer and use it in GitHub Desktop.
Save francisrupert/1f5f90f93c9d16baaa91 to your computer and use it in GitHub Desktop.
A Pen by Francis Rupert.
<ul class="thing">
<li>thing</li>
<li>thing</li>
<li>thing</li>
</ul>
@import "compass/css3";
body {
padding: 10px;
}
.thing {
letter-spacing: -0.31em; // Webkit: collapse white-space between units
*letter-spacing: normal; // reset IE < 8
*word-spacing: -0.43em; // IE < 8: collapse white-space between units
text-rendering: optimizespeed; // Webkit: fixes text-rendering: optimizeLegibility
}
// Opera as of 12 on Windows needs word-spacing.
// The ".opera-only" selector is used to prevent
// actual prefocus styling and is not required in markup.
.opera-only :-o-prefocus,
.thing {
word-spacing: -0.43em;
}
.thing {
> li {
display: inline-block;
background-color: #ccc;
letter-spacing: normal;
word-spacing: normal;
vertical-align: top;
text-rendering: auto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment