I'm facing a challenge in populating a div
with text using letter-spacing
. The issue at hand is that I am unsure of the width of the div
.
Initially, my thoughts leaned towards using text-align= justify
, however, I found myself lost in the maze without a solution in sight. Perhaps some sort of script magic could come to the rescue.
Take a look at this imgur link for a better understanding:
<div id="container">
<h1>Sample</h1>
<p>Another even longer sample text</p>
</div>
Check out this example through this link: JSfiddle.