Wolfie7873
Technical User
Is there such a thing as undo-ing a declaration?
Under normal circumstances a div will expand vertically to contain its content unless you specify a height. I'm looking for a way to dynamically change a div whose height has been specified back to a div that expands on its own.
I want to create an expandable div without having to know ahead of time how big to reset the height. So would there be some way to say:
Under normal circumstances a div will expand vertically to contain its content unless you specify a height. I'm looking for a way to dynamically change a div whose height has been specified back to a div that expands on its own.
I want to create an expandable div without having to know ahead of time how big to reset the height. So would there be some way to say:
Code:
onclick="document.getElementById('mydiv').style.height=automatic"