I have in a page a div with an auto width and 30px height in CSS.
When I enlarge the window I want that div to show more words and expand text, and If take back it hides words or some letters and in the end it put 3 points … Like in the picture :
How can I do like this in CSS and need to JS ???

You can do it with just css if you get creative here is a fiddle http://jsfiddle.net/HZKMd/
or here is an alternate version using jquery to hide and show the ellipse http://jsfiddle.net/HZKMd/1/
add this css class
and include jquery and add these functions