Jump to content

Dynamically Changing Size With Js


Gazow
 Share

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

Edited by Gazow
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...