Hello all,
I'm filling an empty div with html code using innerHTML. Right now I'm
bordering the div using the CSS border property and I'm setting the div
with a hard coded height using the CSS height property. However, I
would like to have the height of the div be automatically fit to the
data displayed inside of it. If I leave the height property out of the
CSS declaration for the div, then the bottom of the div border is right
below the top of the div border and all of the data set using innerHTML
ends up below the border.
How can I make it so that the div height automatically fits the data
inside of it set by innerHTML?
Thanks in advance!