PDA

View Full Version : div height



hguy
08-01-2007, 12:00 AM
HI,

Im using div tag in my htm file in which the text may go for any length. I like to know how the div tag can be increased in its size as the text length increases.

felgall
08-01-2007, 12:45 AM
That is what you get with the default setting of overflow:auto

sameer
08-10-2007, 09:15 AM
<div style="display:table;white-space:nowrap;"> any blah blah text here </div>

this will put all text in single line without wrapping.

jbladeus
08-14-2007, 03:47 PM
overflow:auto should do the job.

edit: i see that its been answered already. :)