Jump to content

Dynamically Changing Size With Js


Gazow

Recommended Posts

so im using document.getElementById().style.width to change width and height values of divsusing a function to call a few of these options. Which seems to work as far as content inside and such, but it appears that it still thinks they are somehow the origonal size as far as other content on the page...is there any way to refresh the document after using such commands?forexample i have a container.. and i set its height to 1000( originally something like 1200.).when i call the function- it changes the attribute properly, but later divs are put in location if it were still at 1200.Any ideas?Thanks-also- im trying to vertically center a table inside a div, is there a way to do this?the table also has varying height depending on certain things so i cant just hardcode

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...