If you wrap your <div> in another <div> then you can use javascript to modify the innerHML of the outer <div> to create whatever internal elements with whatever properties and content you wish.
Getting the current height has a number of
solutions.[
^] - but why not set it to height="auto" and let nature take it's course?