html - CSS, fill all div width with text -
how automatically change space between letters.i want text take entire width of div. text not static. (always changing text, can 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>
edit: unfortunately changes word spacing, not letter spacing. there not way kerning in css. possibly css3, however.
this accomplished text-align: justify
css attribute:
#menu { width: 200px; background-color: #000; color: #336699; font-size: 16px; text-align: justify; }
Comments
Post a Comment