javascript - How to change the size of html div element with text inside it -


I have a DIV element on my page with some text inside that page which is less in the size of a DIV element.

I also have a javascript function that uses setTimeout to animate the change of the element's width property.

While the width becomes less than the width of the text, the line and so on. I tried to use white space: Iraprap, which makes the text on the same line, but when the width of the element decreases by the width of the text, then the text remains outside.

How does the text hinge on the same line and with the Divi container?

You want to add another bit of CSS ():

  Overflow: hidden;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -