View Single Post
  #3 (permalink)  
Old Mar 11th, 2008, 22:55
moojoo's Avatar
moojoo moojoo is offline
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,946
Blog Entries: 1
Thanks: 0
Thanked 29 Times in 29 Posts
Re: Randomly generated one line text filling out the width of a div?

there is word-spacing: in CSS 2 etc.. Anything that does this easily is CSS3 such as text-justify:newspaper; which would do what you need only its not supported yet. Best solution may be to just created a floated div for each word, have that div space accordingly. perhaps using #foo:first-child {} and #foo:last-child {} to handle the first and last then a generic style on remaining elements.
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com
Reply With Quote