CSS, fill all div width with text

Posted by lolalola on Stack Overflow See other posts from Stack Overflow or by lolalola
Published on 2010-12-02T10:51:43Z Indexed on 2010/12/25 6:54 UTC
Read the original article Hit count: 246

Filed under:
|

Hi,

How to automatically change the space between the letters.I want the text to take up the entire width of the div. Text is not static. (Always changing text, can be 123" or "text text"...)

  <style type="text/css">
    #menu{
      width: 200px;
      background-color: #000;
      color: #336699;
      font-size: 16px;
      letter-spacing: 100%;
    }
  </style>
<body>
<div id="menu">
  tekstas
</div>

© Stack Overflow or respective owner

Related posts about html

Related posts about css