I\'ve defined my div\'s height in a stylesheet:
.topbar{
width:100%;
height:70px;
background-color:#475;
}
But as soon as text is entered
change the div to display block
.topbar{
display:block;
width:100%;
height:70px;
background-color:#475;
overflow:scroll;
}
i made a jsfiddle example here please check
http://jsfiddle.net/TgPRM/
You can also use min-height and max-height. It was very useful for me
You can try max-height: 70px; See if that works.
If you want to keep the height of the DIV absolute, regardless of the amount of text inside use the following:
overflow: hidden;