Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

undo a declaration? 1

Status
Not open for further replies.

Wolfie7873

Technical User
Jan 15, 2004
94
US
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:
Code:
onclick="document.getElementById('mydiv').style.height=automatic"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top