I created an empty text box div with width 0 and height 0. I would like it to expand to accomodate text assigned to it in code to fit in one line on the click of a button. How would I do this without pre determining the width of the box?
↧
I created an empty text box div with width 0 and height 0. I would like it to expand to accomodate text assigned to it in code to fit in one line on the click of a button. How would I do this without pre determining the width of the box?