How to dynamically set div size?
Posted
by
Vafello
on Stack Overflow
See other posts from Stack Overflow
or by Vafello
Published on 2011-06-25T00:28:39Z
Indexed on
2011/06/25
8:22 UTC
Read the original article
Hit count: 128
I have a div container with a text that has been previously typed in by the user. I would like to adjust the size of the div to this text. I cannot have fixed size because I dont know the length of the text. If there is no size specified div takes the width of entire window. This cause some problems for me because I am using JQuery draggable plugin and the scrollbars appear immediately when the div is dragged. Any advice on that?
© Stack Overflow or respective owner