Skip to content

Instantly share code, notes, and snippets.

@jordangray
Created May 31, 2012 22:50
Show Gist options
  • Save jordangray/2846982 to your computer and use it in GitHub Desktop.
Save jordangray/2846982 to your computer and use it in GitHub Desktop.
Figure out relationship here! parent lh vs span lh
body {
line-height: 1.5em;
}
/* Figure out relationship here! parent lh vs span lh */
span.justify {
text-align: justify;
display: inline-block;
text-align-last: justify;
width: 100px;
height: 1.1em;
}
span.justify:after {
content: "";
display: inline-block;
width: 100%;
}
span.space {
background: #c00;
width: 40px;
height: 20px;
display: inline-block;
margin-top: -10px;
}
<p>text text text text text text text text text text text <span class="justify">Lo ipm</span><span class="space"> </span><span>d sit ameta sdfasd fasfd consequetuar.</span>
{"view":"separate","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